1 /* { dg-do compile { target *-*-linux* } } */
2 /* { dg-options "-O2 -fpic" } */
4 __attribute__((visibility("protected")))
7 __attribute__((weak
, visibility("protected")))
10 __attribute__((visibility("protected")))
13 __attribute__((weak
, visibility("protected")))
19 /* { dg-final { scan-assembler "\\.word\\tn_common\\(GOT\\)" } } */
26 /* { dg-final { scan-assembler "\\.word\\tn_weak_common\\(GOT\\)" } } */
33 /* { dg-final { scan-assembler "\\.word\\tn_init\\(GOT\\)" } } */
40 /* { dg-final { scan-assembler "\\.word\\tn_weak_init\\(GOT\\)" } } */