PR tree-optimization/83369 - Missing diagnostics during inlining
[official-gcc.git] / gcc / testsuite / gcc.dg / visibility-22.c
blobe2b78d1c7fdedb8e91811b9b370089f4711e4e96
1 /* PR target/32219 */
2 /* { dg-do run } */
3 /* { dg-require-visibility "" } */
4 /* { dg-require-effective-target weak_undefined } */
5 /* { dg-options "-O2 -fPIC" { target fpic } } */
7 extern void foo () __attribute__((weak,visibility("hidden")));
8 int
9 main()
11 if (foo)
12 foo ();
13 return 0;