summary refs log tree commit diff stats
path: root/compiler/c2nim/tests/struct_anonym.h
blob: 859bfc206fdb6da674b412ea346cf6f85f7d3d8b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
struct normal{
	int a;
	int b;
};

typedef struct outerStruct {
	struct normal a_nomal_one;
	
	int a;
	
	struct {
		union {
			int b;
		} a_union_in_the_struct;
		
		int c;
	};
	
	union {
		int d;
		
		struct {
			int e;
		} a_struct_in_the_union;
	} a_union;
};