blob: b37c88cba07d21abd8abfd9e87b321e352a3995a [file] [log] [blame]
Chris Lattner4b009652007-07-25 00:24:17 +00001// RUN: clang -fsyntax-only -fno-caret-diagnostics -pedantic %s 2>&1 | grep warning | wc -l | grep 1
Chris Lattner4045a8a2007-10-11 00:18:28 +00002// RUN: clang -fsyntax-only -verify -pedantic %s
Chris Lattner4b009652007-07-25 00:24:17 +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}}