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

8 lines
338 B
C
Raw Normal View History

// RUN: clang -fsyntax-only -fno-caret-diagnostics -pedantic %s 2>&1 | grep warning | wc -l | grep 1
// 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}}