2017-10-21 23:40:19 +00:00
|
|
|
/* Conformance Test 4.4.2.1: Ensure compile accepts missing declarators */
|
|
|
|
|
2022-10-17 22:50:42 +00:00
|
|
|
int printf(const char *, ...);
|
|
|
|
|
2022-10-13 23:52:18 +00:00
|
|
|
extern struct S; /* forward-declared struct type, */
|
|
|
|
/* storage class ignored */
|
2017-10-21 23:40:19 +00:00
|
|
|
|
2022-10-13 23:52:18 +00:00
|
|
|
struct S {int a;
|
|
|
|
float x;};
|
|
|
|
|
|
|
|
struct S;
|
2017-10-21 23:40:19 +00:00
|
|
|
|
|
|
|
static enum E {a, b, c}; /* storage class ignored */
|
2022-10-13 23:52:18 +00:00
|
|
|
extern enum {x, y, z};
|
2017-10-21 23:40:19 +00:00
|
|
|
|
2022-10-17 22:50:42 +00:00
|
|
|
int main (void)
|
2017-10-21 23:40:19 +00:00
|
|
|
{
|
2022-10-13 23:52:18 +00:00
|
|
|
struct S; /* different from the global one */
|
|
|
|
volatile const register struct T;
|
2017-10-21 23:40:19 +00:00
|
|
|
extern union U {int i;
|
|
|
|
long l;};
|
|
|
|
|
|
|
|
printf ("Passed Conformance Test 4.4.2.1\n");
|
|
|
|
}
|