(root)/
gcc-13.2.0/
gcc/
testsuite/
c-c++-common/
attr-used-8.c
       1  /* { dg-do compile } */
       2  /* { dg-skip-if "non-ELF target" { *-*-darwin* } } */
       3  /* { dg-options "-Wall -O2" } */
       4  
       5  int __attribute__((section(".data.foo"))) foo1 = 1;
       6  int __attribute__((used,section(".data.foo"))) foo2 = 2;
       7  
       8  /* { dg-final { scan-assembler ".data.foo,\"aw\"" { target R_flag_in_section } } } */
       9  /* { dg-final { scan-assembler-not ".data.foo,\"awR\"" { target R_flag_in_section } } } */