Add new tests for --completion option.
authorMartin Liska <mliska@suse.cz>
Mon, 2 Jul 2018 10:30:43 +0000 (12:30 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Mon, 2 Jul 2018 10:30:43 +0000 (10:30 +0000)
2018-07-02  Martin Liska  <mliska@suse.cz>

* 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
gcc/testsuite/gcc.dg/completion-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/completion-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/completion-3.c [new file with mode: 0644]

index 7a27de4f6a821006c6c031c5f91eac2dce7f9531..cc94d3bf740ed8f38f178c1a75581623ee242ba1 100644 (file)
@@ -1,3 +1,9 @@
+2018-07-02  Martin Liska  <mliska@suse.cz>
+
+       * 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  <pault@gcc.gnu.org>
 
        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 (file)
index 0000000..64da64f
--- /dev/null
@@ -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 (file)
index 0000000..ac75085
--- /dev/null
@@ -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 (file)
index 0000000..3c4a89f
--- /dev/null
@@ -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 "" } */