1/* PR preprocessor/65238 */
2/* { dg-do preprocess } */
3
4#if __has_attribute(
5#endif
6#if __has_attribute(unused
7#endif
8#if __has_attribute(unused, unused)
9#endif
10#if __has_attribute(__has_attribute(unused))
11#endif
12
13/* { dg-error "macro .__has_attribute. requires an identifier" "" {target "*-*-*"} 4 } */
14/* { dg-error "missing ... after .__has_attribute." "" {target "*-*-*"} 6 } */
15/* { dg-error "missing ... after .__has_attribute." "" {target "*-*-*"} 8 } */
16/* { dg-error "missing binary operator before token .unused." "" {target "*-*-*"} 8 } */
17/* { dg-error "macro .__has_attribute. requires an identifier" "" {target "*-*-*"} 10 } */
18/* { dg-error "missing ... in expression" "" {target "*-*-*"} 10 } */
19