Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / c-c++-common / attr-retain-1.c
blobd060fbf22cd6333adf1f582d6f666b618a055f2f
1 /* { dg-do compile { target R_flag_in_section } } */
2 /* { dg-options "-O3" } */
4 static void function_declaration_before(void)
5 __attribute__((__used__, __retain__));
7 static void function_declaration_before(void) {}
9 static void function_declaration_after(void) {}
11 static void function_declaration_after(void)
12 __attribute__((__used__, __retain__));
14 /* { dg-final { scan-assembler "function_declaration_before" } } */
15 /* { dg-final { scan-assembler "function_declaration_after" } } */
16 /* { dg-final { scan-assembler "\.text.*,\"axR\"" { target R_flag_in_section } } } */