aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/visibility-22.c
blob: 9123b350b2e4b00050e7b5a5f0233a3c84edbc45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* PR target/32219 */
/* { dg-do run } */
/* { dg-require-visibility "" } */
/* { dg-require-effective-target weak_undefined } */
/* { dg-options "-O2 -fPIC" { target fpic } } */
/* { dg-add-options weak_undefined } */

extern void foo () __attribute__((weak,visibility("hidden")));
int
main()
{
  if (foo)
    foo ();
  return 0;
}