2 static const int __attribute__ ((used
)) cst_local
= 4;
3 static int __attribute__ ((used
)) glob_local
= 5;
4 const int __attribute__ ((used
)) cst_export
= 4;
5 int __attribute__ ((used
)) glob_export
= 5;
6 extern const int cst_import
;
7 extern int glob_import
;
11 return cst_import
+ glob_import
;
14 /* { dg-final { scan-assembler "\[\r\n\]\[\t \]*.visible .global \[^,\r\n\]*glob_export" } } */
15 /* { dg-final { scan-assembler "\[\r\n\]\[\t \]*.visible .const \[^,\r\n\]*cst_export" } } */
16 /* { dg-final { scan-assembler "\[\r\n\]\[\t \]*.global \[^,\r\n\]*glob_local" } } */
17 /* { dg-final { scan-assembler "\[\r\n\]\[\t \]*.const \[^,\r\n\]*cst_local" } } */
18 /* { dg-final { scan-assembler "\[\r\n\]\[\t \]*.extern .global \[^,\r\n\]*glob_import" } } */
19 /* { dg-final { scan-assembler "\[\r\n\]\[\t \]*.extern .const \[^,\r\n\]*cst_import" } } */