From: John David Anglin Date: Thu, 28 Feb 2019 13:17:09 +0000 (+0000) Subject: Fix test-case visibility (PR testsuite/89441). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=32679718409ed923ce55d895a0860e3e2ac8abc3;p=gcc.git Fix test-case visibility (PR testsuite/89441). 2019-02-28 John David Anglin PR testsuite/89441 * g++.dg/ipa/pr89009.C: Update symbol visibility. From-SVN: r269278 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6795bfc7678..a32df6c62bd 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-02-28 John David Anglin + + PR testsuite/89441 + * g++.dg/ipa/pr89009.C: Update symbol visibility. + 2019-02-28 Tamar Christina PR target/88530 diff --git a/gcc/testsuite/g++.dg/ipa/pr89009.C b/gcc/testsuite/g++.dg/ipa/pr89009.C index 6b4fc65a641..70ab0be64a9 100644 --- a/gcc/testsuite/g++.dg/ipa/pr89009.C +++ b/gcc/testsuite/g++.dg/ipa/pr89009.C @@ -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; }