// RUN: %clang_cc1 %s -fsyntax-only -verify -pedantic -std=c99
extern int a1;
void ; /* expected-warning {{a function declaration without a prototype is deprecated in all versions of C}} */
void ;
void ;
void ;
int ; /* expected-error {{cannot return}} expected-warning {{type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int}} */
int ; /* expected-error {{'static' may not be used without an array size}} */
;
;
int aaaa, ***C, * const D, ;
int *A;
;
void
typedef int atype;
void int x, atype;
void int x; // expected-error {{redefinition of parameter 'x'}} \
// expected-warning {{a function definition without a prototype is deprecated in all versions of C and is not supported in C2x}}
// PR3031
, ; // expected-error {{expected identifier or '('}}
// PR3963 & rdar://6759604 - test error recovery for mistyped "typenames".
foo_t *d; // expected-error {{unknown type name 'foo_t'}}
foo_t a; // expected-error {{unknown type name 'foo_t'}}
int
// Use of tagged type without tag. rdar://6783347
;
;
xyz b; // expected-error {{must use 'struct' tag to refer to type 'xyz'}}
myenum c; // expected-error {{must use 'enum' tag to refer to type 'myenum'}}
float *
struct xyz // a should be be marked invalid, no diag.
// Verify that implicit int still works.
static f; // expected-warning {{type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int}}
static g = 4; // expected-warning {{type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int}}
static h // expected-warning {{type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int}}
__asm__;
;
// PR6208
static test10x;
const test11x;
// PR6216
void
// rdar://7608537
;
// <rdar://problem/8044088>
; // expected-error{{expected identifier or '('}}
// PR7617 - error recovery on missing ;.
void void ;
void *test14b = test14a; // Make sure test14a didn't get skipped.
// rdar://problem/8358508
long struct X ; // expected-error {{'long struct' is invalid}}
void int i j; // expected-error {{expected ';' at end of declaration}} \
// expected-warning {{a function definition without a prototype is deprecated in all versions of C and is not supported in C2x}}
void int i, j k; // expected-error {{expected ';' at end of declaration}} \
// expected-warning {{a function definition without a prototype is deprecated in all versions of C and is not supported in C2x}}
void int i // expected-error {{expected ';' at end of declaration}} \
// expected-warning {{a function definition without a prototype is deprecated in all versions of C and is not supported in C2x}}
// PR12595
void
: // expected-error {{expected ';'}}
;
// PR10982
;
;
void
;
void
;
void
;
void
;
int PR20634 = sizeof;