1 /* { dg-do compile } */
3 int __attribute__ ((common
)) common
;
5 extern int external_decl
;
10 return common
+ local
+ external_decl
+ external_defn
;
15 common
= local
= external_decl
= external_defn
= i
;
18 /* { dg-final { scan-assembler "\[\n\r\]\[\t \]*.weak .global\[^,\n\r\]*common" } } */
19 /* { dg-final { scan-assembler "\[\n\r\]\[\t \]*.global\[^,\n\r\]*local" } } */
20 /* { dg-final { scan-assembler "\[\n\r\]\[\t \]*.extern .global\[^,\n\r\]*external_decl" } } */
21 /* { dg-final { scan-assembler "\[\n\r\]\[\t \]*.visible .global\[^,\n\r\]*external_defn" } } */