c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / c-c++-common / attr-used.c
blob96c6d67434612c612d6f473c42a9d229f6a5e570
1 /* { dg-do compile } */
2 /* { dg-options "-O3" } */
4 static void function_declaration_before(void) __attribute__((__used__));
6 static void function_declaration_before(void) {}
8 static void function_declaration_after(void) {}
10 static void function_declaration_after(void) __attribute__((__used__));
12 /* { dg-final { scan-assembler "function_declaration_before" } } */
13 /* { dg-final { scan-assembler "function_declaration_after" } } */
14 /* { dg-final { scan-assembler-not "\.text.*,\"axR\"" { target R_flag_in_section } } } */