aboutsummaryrefslogtreecommitdiff
path: root/test/Parser/recovery-1.c
blob: b7270b572a9f9e97757054676b8b2d725948369a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// RUN: clang -fsyntax-only -fno-caret-diagnostics -pedantic %s 2>&1 | grep warning | wc -l | grep 1
// RUN: clang -fsyntax-only -verify -pedantic %s

char ((((                       /* expected-error {{to match this '('}} */
*X x ] ))));                    /* expected-error {{expected ')'}} */

;   // expected-warning {{ISO C does not allow an extra ';' outside of a function}}




struct S { void *X, *Y; };

struct S A = {
	&BADIDENT, 0     /* expected-error {{use of undeclared identifier}} */
};