2007-06-27 15:31:17 +08:00
|
|
|
// RUN: clang -fsyntax-only -fno-caret-diagnostics -pedantic %s 2>&1 | grep warning | wc -l | grep 1
|
2007-09-27 04:14:22 +08:00
|
|
|
// RUN: clang -parse-ast -verify -pedantic %s
|
2006-08-07 05:55:13 +08:00
|
|
|
|
2007-06-28 02:18:03 +08:00
|
|
|
char (((( /* expected-error {{to match this '('}} */
|
|
|
|
*X x ] )))); /* expected-error {{expected ')'}} */
|
2006-08-07 05:55:13 +08:00
|
|
|
|
2007-06-27 12:30:12 +08:00
|
|
|
; // expected-warning {{ISO C does not allow an extra ';' outside of a function}}
|