annotate gcc/testsuite/gcc.dg/darwin-weakref-1.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-do compile { target *-*-darwin* } } */
kono
parents:
diff changeset
2 // { dg-require-weak "" }
kono
parents:
diff changeset
3 // { dg-options "-O2" }
kono
parents:
diff changeset
4 // { dg-options "-O2 -mmacosx-version-min=10.2" { target { powerpc-*-darwin* } } }
kono
parents:
diff changeset
5 /* { dg-final { scan-assembler "weak_reference _wv1" } } */
kono
parents:
diff changeset
6 /* { dg-final { scan-assembler "weak_reference _wf1" } } */
kono
parents:
diff changeset
7 /* { dg-final { scan-assembler-not "weak_reference _w.2" } } */
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 typedef int vtype;
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 extern vtype wv1;
kono
parents:
diff changeset
13 static vtype Wv1a __attribute__((weakref ("wv1")));
kono
parents:
diff changeset
14 vtype *pv1a = &Wv1a;
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16 extern vtype wv2;
kono
parents:
diff changeset
17 static vtype Wv2a __attribute__((weakref ("wv2")));
kono
parents:
diff changeset
18 vtype *pv2a = &wv2;
kono
parents:
diff changeset
19
kono
parents:
diff changeset
20 typedef void ftype(void);
kono
parents:
diff changeset
21
kono
parents:
diff changeset
22 extern ftype wf1;
kono
parents:
diff changeset
23 static ftype Wf1a __attribute__((weakref ("wf1")));
kono
parents:
diff changeset
24 ftype *pf1a = &Wf1a;
kono
parents:
diff changeset
25
kono
parents:
diff changeset
26 extern ftype wf2;
kono
parents:
diff changeset
27 static ftype Wf2a __attribute__((weakref ("wf2")));
kono
parents:
diff changeset
28 ftype *pf2a = &wf2;