annotate gcc/testsuite/objc.dg/weak-1.m @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Test for #pragma weak where the weak alias symbol isn't declared,
kono
parents:
diff changeset
2 although the symbol it is an alias for is defined in the
kono
parents:
diff changeset
3 translation unit. Bug 7544. */
kono
parents:
diff changeset
4 /* Origin: Joseph Myers <joseph@codesourcery.com> */
kono
parents:
diff changeset
5 /* { dg-do compile } */
kono
parents:
diff changeset
6 /* { dg-require-weak "" } */
kono
parents:
diff changeset
7 /* { dg-require-alias "" } */
kono
parents:
diff changeset
8 /* { dg-options "-fno-common" } */
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 /* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?bar1" } } */
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 #pragma weak bar1 = foo1
kono
parents:
diff changeset
13 void foo1 (void) {}