c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / c-c++-common / attr-used-7.c
blob9c9862fcafd98c41475ab80a58d70487d833fd86
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 } } } */