(root)/
gcc-13.2.0/
gcc/
testsuite/
c-c++-common/
pragma-diag-15.c
       1  /* { dg-do compile } */
       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     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.  */
      11  
      12  #define X /* { dg-warning "-:-Wunused-macros" } */
      13  #pragma GCC diagnostic ignored "-Wunused-macros"