Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / c-c++-common / attr-retain-2.c
blob6baba844adc1644055da92a462d641c517a18a47
1 /* { dg-do compile { target R_flag_in_section } } */
2 /* { dg-options "-Wall -O2" } */
4 static int xyzzy __attribute__((__used__, __retain__)) = 1;
6 void foo()
8 int x __attribute__((__retain__)); /* { dg-warning "attribute ignored|unused variable" } */
11 /* { dg-final { scan-assembler "xyzzy" } } */
12 /* { dg-final { scan-assembler "\.data.*,\"awR\"" { target R_flag_in_section } } } */