| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O3" } */ |
| 3 |
|
| 4 |
static void function_declaration_before(void) __attribute__((__used__)); |
| 5 |
|
| 6 |
static void function_declaration_before(void) {} |
| 7 |
|
| 8 |
static void function_declaration_after(void) {} |
| 9 |
|
| 10 |
static void function_declaration_after(void) __attribute__((__used__)); |
| 11 |
|
| 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 } } } */ |