From 108e1a85811c8bf25a1d684a111d010db89d6ca0 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Mon, 2 Jul 2018 12:30:43 +0200 Subject: [PATCH] Add new tests for --completion option. 2018-07-02 Martin Liska * gcc.dg/completion-1.c: New test. * gcc.dg/completion-2.c: New test. * gcc.dg/completion-3.c: New test. From-SVN: r262304 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.dg/completion-1.c | 8 ++++++++ gcc/testsuite/gcc.dg/completion-2.c | 10 ++++++++++ gcc/testsuite/gcc.dg/completion-3.c | 13 +++++++++++++ 4 files changed, 37 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/completion-1.c create mode 100644 gcc/testsuite/gcc.dg/completion-2.c create mode 100644 gcc/testsuite/gcc.dg/completion-3.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7a27de4f6a8..cc94d3bf740 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2018-07-02 Martin Liska + + * gcc.dg/completion-1.c: New test. + * gcc.dg/completion-2.c: New test. + * gcc.dg/completion-3.c: New test. + 2018-07-02 Paul Thomas PR fortran/82969 diff --git a/gcc/testsuite/gcc.dg/completion-1.c b/gcc/testsuite/gcc.dg/completion-1.c new file mode 100644 index 00000000000..64da64f1c69 --- /dev/null +++ b/gcc/testsuite/gcc.dg/completion-1.c @@ -0,0 +1,8 @@ +/* { dg-do compile } */ +/* { dg-options "--completion=-fipa-ic" } */ + +/* { dg-begin-multiline-output "" } +-fipa-icf +-fipa-icf-functions +-fipa-icf-variables + { dg-end-multiline-output "" } */ diff --git a/gcc/testsuite/gcc.dg/completion-2.c b/gcc/testsuite/gcc.dg/completion-2.c new file mode 100644 index 00000000000..ac7508591de --- /dev/null +++ b/gcc/testsuite/gcc.dg/completion-2.c @@ -0,0 +1,10 @@ +/* { dg-do compile } */ +/* { dg-options "--completion=-flto-parti" } */ + +/* { dg-begin-multiline-output "" } +-flto-partition=1to1 +-flto-partition=balanced +-flto-partition=max +-flto-partition=none +-flto-partition=one + { dg-end-multiline-output "" } */ diff --git a/gcc/testsuite/gcc.dg/completion-3.c b/gcc/testsuite/gcc.dg/completion-3.c new file mode 100644 index 00000000000..3c4a89ffdd5 --- /dev/null +++ b/gcc/testsuite/gcc.dg/completion-3.c @@ -0,0 +1,13 @@ +/* { dg-do compile } */ +/* { dg-options "--completion=--param=asan-" } */ + +/* { dg-begin-multiline-output "" } +--param=asan-stack +--param=asan-instrument-allocas +--param=asan-globals +--param=asan-instrument-writes +--param=asan-instrument-reads +--param=asan-memintrin +--param=asan-use-after-return +--param=asan-instrumentation-with-call-threshold + { dg-end-multiline-output "" } */ -- 2.30.2