1 /* { dg-do compile } */
2 /* { dg-skip-if "non-ELF target" { *-*-darwin* } } */
3 /* { dg-options "-Wall -O2" } */
5 int __attribute__((used
,section(".data.foo"))) foo2
= 2;
6 int __attribute__((section(".data.foo"))) foo1
= 1;
8 /* { dg-final { scan-assembler ".data.foo,\"aw\"" { target R_flag_in_section } } } */
9 /* { dg-final { scan-assembler-not ".data.foo,\"awR\"" { target R_flag_in_section } } } */