xref: /freebsd/contrib/netbsd-tests/usr.bin/xlint/lint1/d_c99_anon_union.c (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1 /* struct with only anonymous members */
2 
3 struct foo {
4 	union {
5 		long loo;
6 		double doo;
7 	};
8 };
9 
10 int
11 main(void) {
12 
13 	struct foo *f = 0;
14 	printf("%p\n", &f[1]);
15 	return 0;
16 }
17