xref: /illumos-gate/usr/src/tools/smatch/src/validation/backend/struct.c (revision 20a7641f9918de8574b8b3b47dbe35c4bfc78df1)
1 struct ctype {
2 	int			type;
3 };
4 
5 struct symbol {
6 	void			*p;
7 	const char		*name;
8 	struct ctype		ctype;
9 	struct symbol		*next_id;
10 };
11 
12 struct unnamed {
13 	struct { int x, y; };
14 };
15 
16 static struct symbol sym;
17 static struct symbol *sym_p;
18 static struct symbol *sym_q = &sym;
19 
20 static struct unnamed un;
21 
22 /*
23  * check-name: Struct code generation
24  * check-command: sparsec -c $file -o tmp.o
25  */
26