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