blob: d70cdab364a1bc3a8460b1f6b4312421f64ca944 [file] [log] [blame]
Argiris Kirtzidis73b524d2008-06-12 12:40:02 +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};