Commit 32679718 by John David Anglin Committed by Martin Liska

Fix test-case visibility (PR testsuite/89441).

2019-02-28  John David Anglin  <danglin@gcc.gnu.org>

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

From-SVN: r269278
parent ad7abff5
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
......
/* 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; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment