summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/visibility/visibility-11.C
blob: 78f40c62b8ba9b656ec80df086eef5ff23f669ee (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);
}