testsuite: Skip analyzer tests on AIX.
[official-gcc.git] / gcc / testsuite / c-c++-common / attr-used-2.c
blob5849747d1e4b02d111b7f49215fe749154c12a95
1 /* { dg-do compile } */
2 /* { dg-options "-Wall -O2" } */
4 static int xyzzy __attribute__((__used__)) = 1;
6 void foo()
8 int x __attribute__((__used__)); /* { dg-warning "attribute ignored|unused variable" } */
11 /* { dg-final { scan-assembler "xyzzy" } } */
12 /* { dg-final { scan-assembler-not "\.data.*,\"awR\"" { target R_flag_in_section } } } */