2007-06-27 15:31:17 +08:00
|
|
|
// RUN: clang -fsyntax-only -fno-caret-diagnostics -pedantic %s 2>&1 | grep warning | wc -l | grep 1
|
2007-10-11 08:18:28 +08:00
|
|
|
// RUN: clang -fsyntax-only -verify -pedantic %s
|
2006-08-07 05:55:13 +08:00
|
|
|
|
2007-06-28 02:18:03 +08:00
|
|
|
char (((( /* expected-error {{to match this '('}} */
|
|
|
|
*X x ] )))); /* expected-error {{expected ')'}} */
|
2006-08-07 05:55:13 +08:00
|
|
|
|
2007-06-27 12:30:12 +08:00
|
|
|
; // expected-warning {{ISO C does not allow an extra ';' outside of a function}}
|
2007-10-26 01:27:01 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct S { void *X, *Y; };
|
|
|
|
|
|
|
|
struct S A = {
|
|
|
|
&BADIDENT, 0 /* expected-error {{use of undeclared identifier}} */
|
|
|
|
};
|