blob: f40eb6278a49befcf5af92894d0ffb7e624c2935 [file] [log] [blame]
Reid Spencer5f016e22007-07-11 17:01:13 +00001// RUN: clang -fsyntax-only -fno-caret-diagnostics -pedantic %s 2>&1 | grep warning | wc -l | grep 1
Chris Lattner2b80ec22007-07-12 16:48:52 +00002// RUN: clang -parse-ast-check -pedantic %s
Reid Spencer5f016e22007-07-11 17:01:13 +00003
4char (((( /* expected-error {{to match this '('}} */
5*X x ] )))); /* expected-error {{expected ')'}} */
6
7; // expected-warning {{ISO C does not allow an extra ';' outside of a function}}