testsuite: Skip analyzer tests on AIX.
[official-gcc.git] / gcc / testsuite / c-c++-common / pragma-diag-15.c
blob5cb8c356ed6124fb502433091b3b5b4b5864910d
1 /* { dg-do compile } */
2 /* { dg-additional-options "-Wunused-macros" } */
4 /* In the past, the pragma has erroneously disabled the warning because the
5 location was not tracked properly with -E or -save-temps; check that it works
6 now.
8 This test currently fails for C++ but it's not because of the pragma, it's
9 because the location of the macro definition is incorrectly set. This is a
10 separate issue, will resolve it in a later patch. */
12 #define X /* { dg-warning "-Wunused-macros" } */
13 #pragma GCC diagnostic ignored "-Wunused-macros"