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