Fix up dependencies for allocate.c
[smatch.git] / validation / struct-ns1.c
blob56d222d1d3ff63f6abd22c7dbe8064e79a9f38ab
1 // This actually isn't allowed in C99, but sparse and gcc will take it:
2 enum Foo;
4 void
5 f (void)
7 enum Foo *pefoo; // Pointer to incomplete type
8 struct Foo; // Forward declaration
9 struct Foo *psfoo; // Pointer to incomplete type
11 struct Foo { int foo; }; // Local definition.
12 struct Foo foo; // variable declaration.
13 foo.foo = 1;
17 enum Foo { FOO };