Fix test-case visibility (PR testsuite/89441).
authorJohn David Anglin <danglin@gcc.gnu.org>
Thu, 28 Feb 2019 13:17:09 +0000 (13:17 +0000)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 28 Feb 2019 13:17:09 +0000 (13:17 +0000)
2019-02-28  John David Anglin  <danglin@gcc.gnu.org>

PR testsuite/89441
* g++.dg/ipa/pr89009.C: Update symbol visibility.

From-SVN: r269278

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ipa/pr89009.C

index 6795bfc767841d2e67a076df6b0d9bf54b5a1b32..a32df6c62bd2dada7a51079bfb389e94a870aafb 100644 (file)
@@ -1,3 +1,8 @@
+2019-02-28  John David Anglin  <danglin@gcc.gnu.org>
+
+       PR testsuite/89441
+       * g++.dg/ipa/pr89009.C: Update symbol visibility.
+
 2019-02-28  Tamar Christina  <tamar.christina@arm.com>
 
        PR target/88530
index 6b4fc65a6414ab12c78b4188a524e27c233f9240..70ab0be64a9ec82eb1d9f76637c25d0e92a02d33 100644 (file)
@@ -1,11 +1,12 @@
 /* PR ipa/89009 */
 /* { dg-do run } */
-/* { dg-options "-fvisibility=hidden -fpic -O2 -fno-inline" } */
+/* { dg-options "-fpic -O2 -fno-inline" } */
+/* { dg-require-visibility "" } */
 
-#pragma GCC visibility push(default)
 void foo1() { __builtin_printf ("foo\n"); }
-#pragma GCC visibility pop
+#pragma GCC visibility push(hidden)
 void foo2() { __builtin_printf ("foo\n"); }
+#pragma GCC visibility pop
 
 int main() { foo2(); return 0; }