gcc/testsuite/c-c++-common/pragma-diag-14.c
raw| 1 | /* { dg-do preprocess } */ |
| 2 | /* { dg-additional-options "-Wunused-macros" } */ |
| 3 | |
| 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. */ |
| 7 | |
| 8 | #define X /* { dg-warning "-Wunused-macros" } */ |
| 9 | #pragma GCC diagnostic ignored "-Wunused-macros" |