gcc/gcc/testsuite/gcc.dg/visibility-20.c

19 lines
266 B
C

/* PR target/39175 */
/* { dg-do compile } */
/* { dg-require-visibility "" } */
/* { dg-options "-O2 -fvisibility=hidden -fpic" { target fpic } } */
__attribute__((noinline)) int
foo (int x)
{
return x;
}
int foo (int x);
int
bar (int x)
{
return foo (x);
}