llvm-project/clang/test/Parser/recovery-1.c

7 lines
246 B
C
Raw Normal View History

// RUN: clang -parse-ast-check %s
2006-08-07 05:55:13 +08:00
char ((((*X x ] )))); /* expected-error {{expected ')'}} \
expected-error {{to match this '('}} */
2006-08-07 05:55:13 +08:00
; // expected-warning {{ISO C does not allow an extra ';' outside of a function}}