aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/pragma-diag-14.c
blob: 45dc4a38c5c03acc7797ae8e2fd8fd0268b2e49c (plain)
1
2
3
4
5
6
7
8
9
/* { dg-do preprocess } */
/* { dg-additional-options "-Wunused-macros" } */

/* In the past, the pragma has erroneously disabled the warning because the
   location was not tracked properly with -E or -save-temps; check that it works
   now.  */

#define X /* { dg-warning "-Wunused-macros" } */
#pragma GCC diagnostic ignored "-Wunused-macros"