(root)/
gcc-13.2.0/
gcc/
testsuite/
c-c++-common/
attr-used-2.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-Wall -O2" } */
       3  
       4  static int xyzzy __attribute__((__used__)) = 1; 
       5  
       6  void foo()
       7  {
       8    int x __attribute__((__used__)); /* { dg-warning "attribute ignored|unused variable" } */
       9  }
      10  
      11  /* { dg-final { scan-assembler "xyzzy" } } */
      12  /* { dg-final { scan-assembler-not "\.data.*,\"awR\"" { target R_flag_in_section } } } */