(root)/
gcc-13.2.0/
gcc/
testsuite/
c-c++-common/
attr-retain-1.c
       1  /* { dg-do compile { target R_flag_in_section } } */
       2  /* { dg-options "-O3" } */
       3  
       4  static void function_declaration_before(void)
       5    __attribute__((__used__, __retain__));
       6  
       7  static void function_declaration_before(void) {}
       8  
       9  static void function_declaration_after(void) {}
      10  
      11  static void function_declaration_after(void)
      12    __attribute__((__used__, __retain__));
      13  
      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 } } } */