// RUN: %clang_cc1 -fsyntax-only -pedantic -Wno-strict-prototypes -verify %s
/* This test checks the introduction of struct and union types based
on a type specifier of the form "struct-or-union identifier" when they
type has not yet been declared. See C99 6.7.2.3p8. */
typedef struct S1 S1;
int
int
// FIXME: We do not properly implement C99 6.2.1p4, which says that
// the type "struct S4" declared in the function parameter list has
// block scope within the function definition. The problem, in this
// case, is that the code is ill-formed but we warn about the two S4's
// being incompatible (we think they are two different types).
int
void ; // expected-warning{{declaration of 'struct S5' will not be visible outside of this function}}
// PR clang/3312
;
void
// <rdar://problem/6487669>
typedef struct z_foo_s z_foo;
typedef z_foo *z_foop;
;
void
z_foop z;