From: Martin Liska Date: Mon, 2 Jul 2018 10:30:43 +0000 (+0200) Subject: Add new tests for --completion option. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=108e1a85811c8bf25a1d684a111d010db89d6ca0;p=gcc.git 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 --- 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 "" } */