summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/visibility-20.c
blob: 5fc7447f0deb8d5edfa1c31a62d935e66bfb7a64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* 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);
}