(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr56167.c
       1  /* PR middle-end/56167 */
       2  /* { dg-do compile } */
       3  
       4  extern void foo (void) __attribute__ ((error (0)));	/* { dg-warning "attribute ignored" } */
       5  extern void bar (void) __attribute__ ((warning (0)));	/* { dg-warning "attribute ignored" } */
       6  int var __attribute__ ((error ("foo")));		/* { dg-warning "attribute ignored" } */
       7  
       8  int
       9  main ()
      10  {
      11    foo ();
      12    bar ();
      13    var++;
      14    return 0;
      15  }