1 /* { dg-do compile { target *-*-darwin* } } */
2 // { dg-require-weak "" }
3 // { dg-options "-O2" }
4 // { dg-options "-O2 -mmacosx-version-min=10.2" { target { powerpc-*-darwin* } } }
5 /* { dg-final { scan-assembler "weak_reference _wv1" } } */
6 /* { dg-final { scan-assembler "weak_reference _wf1" } } */
7 /* { dg-final { scan-assembler-not "weak_reference _w.2" } } */
13 static vtype Wv1a
__attribute__((weakref ("wv1")));
17 static vtype Wv2a
__attribute__((weakref ("wv2")));
20 typedef void ftype(void);
23 static ftype Wf1a
__attribute__((weakref ("wf1")));
27 static ftype Wf2a
__attribute__((weakref ("wf2")));