xref: /illumos-gate/usr/src/tools/smatch/src/validation/backend/struct.c (revision 1f5207b7604fb44407eb4342aff613f7c4508508)
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