blob: b7270b572a9f9e97757054676b8b2d725948369a [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}}
Chris Lattner265937d2007-10-25 17:27:01 +00008
9
10
11
12struct S { void *X, *Y; };
13
14struct S A = {
15 &BADIDENT, 0 /* expected-error {{use of undeclared identifier}} */
16};