1 // RUN: %clang_cc1 -fsyntax-only -verify -pedantic -fblocks %s
5 1e
, // expected-error {{exponent}}
6 1ee0
// expected-error {{exponent}}
10 // Testcase derived from PR2692
11 static void f (char * (*g
) (char **, int), char **p
, ...) {
13 va_list v
; // expected-error {{identifier}}
14 s
= g (p
, __builtin_va_arg(v
, int)); // expected-error {{identifier}}
19 } // expected-error {{expected external declaration}}
26 if (x
.hello
) // expected-error {{no member named 'hello'}}
31 if (x
.hello
== 0) // expected-error {{no member named 'hello'}}
36 if ((x
.hello
== 0)) // expected-error {{no member named 'hello'}}
41 if (x
.i
== 0)) // expected-error {{expected expression}}
49 char (((( /* expected-note {{to match this '('}} */
50 *X x
] )))); /* expected-error {{expected ')'}} */
52 ; // expected-warning {{ISO C does not allow an extra ';' outside of a function}}
57 struct S
{ void *X
, *Y
; };
60 &BADIDENT
, 0 /* expected-error {{use of undeclared identifier}} */
65 [10] // expected-error {{expected expression}}
68 struct forward
; // expected-note{{forward declaration of 'struct forward'}}
69 void x(struct forward
* x
) {switch(x
->a
) {}} // expected-error {{incomplete definition of type}}
74 X
= 4 // expected-error{{expected ';' after expression}}
79 typedef int intptr_t; // expected-note {{'intptr_t' declared here}}
80 void bar(intptr y
); // expected-error {{unknown type name 'intptr'; did you mean 'intptr_t'?}}
83 int x
= 2: // expected-error {{expected ';' at end of declaration}}