1 /* Test __has_c_attribute. Test syntax errors. */
2 /* { dg-do preprocess } */
3 /* { dg-options "-std=c2x -pedantic-errors" } */
5 #if __has_c_attribute /* { dg-error "missing '\\('" } */
8 #if __has_c_attribute 0 /* { dg-error "missing '\\('" } */
11 #if __has_c_attribute (0 /* { dg-error "requires an identifier" } */
14 #if __has_c_attribute (x /* { dg-error "missing '\\)'" } */
17 #if __has_c_attribute (x::0) /* { dg-error "required after scope" } */