3 /* { dg-require-visibility "" } */
4 /* { dg-options "-O2 -fPIC" { target fpic } } */
5 /* This test requires support for undefined weak symbols. This support
6 is not available on hppa*-*-hpux*. The test is skipped rather than
7 xfailed to suppress the warning that would otherwise arise. */
8 /* { dg-skip-if "" { "hppa*-*-hpux*" "*-*-aix*" "*-*-darwin*" } "*" { "" } } */
10 extern void foo () __attribute__((weak
,visibility("hidden")));