1 /* { dg-do compile } */
2 /* { dg-options "-Wattributes" } */
4 /* Make sure #pragma can enable a warning as an error. */
6 #pragma GCC diagnostic error "-Waddress"
8 void __attribute__((dj
)) bar() { } /* { dg-warning ".* attribute directive ignored" } */
15 if (&i
) /* { dg-error ".* will always evaluate as 'true'" } */