1 #include <stdio.h>
2 
3 struct foo {
4 	int	x;
5 	int	y;
6 	struct {  /* nested struct to check that the varinit initializer is
7 		   * correctly computed
8 		   */
9 		char	first;
10 		int	second;
11 	} hm;
12 	int	z;
13 };
14 
15 int
main()16 main() {
17 	int		x = 123;
18 	int		y = x * 12;
19 	struct foo	f = { 567, x, { 14 }, y };
20 	printf("%d, %d, %d, %d, %d\n", f.x, f.y, f.hm.first, f.hm.second, f.z);
21 }
22 
23