]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Fix up pr93166.C test, so that it doesn't FAIL with -std=c++98 and tests...
authorJakub Jelinek <jakub@redhat.com>
Sat, 25 Jan 2020 23:47:18 +0000 (00:47 +0100)
committerJakub Jelinek <jakub@redhat.com>
Sat, 25 Jan 2020 23:47:18 +0000 (00:47 +0100)
2020-01-26  Jakub Jelinek  <jakub@redhat.com>

PR ipa/93166
* g++.dg/pr93166.C: Move to ...
* g++.dg/pr93166_0.C: ... here.  Turn it into a proper lto test.

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lto/pr93166_0.C [moved from gcc/testsuite/g++.dg/pr93166.C with 95% similarity]

index 49901356e7bcc58e6d1bcfaf1d06c3040232b24f..99da3cc5feb68bf5cbc43231f7416bd01aa200c2 100644 (file)
@@ -1,5 +1,9 @@
 2020-01-26  Jakub Jelinek  <jakub@redhat.com>
 
+       PR ipa/93166
+       * g++.dg/pr93166.C: Move to ...
+       * g++.dg/pr93166_0.C: ... here.  Turn it into a proper lto test.
+
        PR tree-optimization/92788
        * g++.dg/pr92788.C: Move to ...
        * g++.target/i386/pr92788.C: ... here.  Remove target from dg-do line.
similarity index 95%
rename from gcc/testsuite/g++.dg/pr93166.C
rename to gcc/testsuite/g++.dg/lto/pr93166_0.C
index e9234ce7a0cbce3480888b319265ee3effad03bc..52f7ddf4016a76bb9bede318cca90c1c3cad69f7 100644 (file)
@@ -1,5 +1,10 @@
-// { dg-do compile }
-// { dg-options "-shared -flto -O2 -fPIC -fvisibility=hidden" }
+// PR ipa/93166
+// { dg-lto-do link }
+// { dg-lto-options { { -fPIC -O2 -flto -fvisibility=hidden } } }
+// { dg-require-effective-target shared }
+// { dg-require-effective-target fpic }
+// { dg-extra-ld-options "-shared" }
+// { dg-require-visibility "" }
 
 namespace Qt {
 enum DropAction {};