1 /* { dg-do compile } */
2 /* { dg-options "-Wattributes" } */
3 /* { dg-message "some warnings being treated as errors" "" {target "*-*-*"} 0 } */
4 /* Make sure the pragma enables the error. */
6 #pragma GCC diagnostic error "-Waddress"
9 void __attribute__((dj
)) bar() { } /* { dg-warning "attribute directive ignored" } */
16 if (&i
) /* { dg-error "will always evaluate as 'true'" } */