blob: 6baba844adc1644055da92a462d641c517a18a47 [file] [log] [blame]
/* { dg-do compile { target R_flag_in_section } } */
/* { dg-options "-Wall -O2" } */
static int xyzzy __attribute__((__used__, __retain__)) = 1;
void foo()
{
int x __attribute__((__retain__)); /* { dg-warning "attribute ignored|unused variable" } */
}
/* { dg-final { scan-assembler "xyzzy" } } */
/* { dg-final { scan-assembler "\.data.*,\"awR\"" { target R_flag_in_section } } } */