#stdout
TestUnionDecl Case 1:
{
	"temp.h":	{
		"_Type":	"File",
		"decls":	[{
				"_Type":	"TypeDecl",
				"Loc":	{
					"_Type":	"Location",
					"File":	"temp.h"
				},
				"Doc":	null,
				"Parent":	null,
				"Name":	null,
				"Type":	{
					"_Type":	"RecordType",
					"Tag":	1,
					"Fields":	{
						"_Type":	"FieldList",
						"List":	[{
								"_Type":	"Field",
								"Type":	{
									"_Type":	"BuiltinType",
									"Kind":	6,
									"Flags":	0
								},
								"Doc":	null,
								"Comment":	null,
								"IsStatic":	false,
								"Access":	1,
								"Names":	[{
										"_Type":	"Ident",
										"Name":	"a"
									}]
							}, {
								"_Type":	"Field",
								"Type":	{
									"_Type":	"BuiltinType",
									"Kind":	6,
									"Flags":	0
								},
								"Doc":	null,
								"Comment":	null,
								"IsStatic":	false,
								"Access":	1,
								"Names":	[{
										"_Type":	"Ident",
										"Name":	"b"
									}]
							}]
					},
					"Methods":	[]
				}
			}],
		"includes":	[],
		"macros":	[]
	}
}

TestUnionDecl Case 2:
{
	"temp.h":	{
		"_Type":	"File",
		"decls":	[{
				"_Type":	"TypeDecl",
				"Loc":	{
					"_Type":	"Location",
					"File":	"temp.h"
				},
				"Doc":	null,
				"Parent":	null,
				"Name":	{
					"_Type":	"Ident",
					"Name":	"A"
				},
				"Type":	{
					"_Type":	"RecordType",
					"Tag":	1,
					"Fields":	{
						"_Type":	"FieldList",
						"List":	[{
								"_Type":	"Field",
								"Type":	{
									"_Type":	"BuiltinType",
									"Kind":	6,
									"Flags":	0
								},
								"Doc":	null,
								"Comment":	null,
								"IsStatic":	false,
								"Access":	1,
								"Names":	[{
										"_Type":	"Ident",
										"Name":	"a"
									}]
							}, {
								"_Type":	"Field",
								"Type":	{
									"_Type":	"BuiltinType",
									"Kind":	6,
									"Flags":	0
								},
								"Doc":	null,
								"Comment":	null,
								"IsStatic":	false,
								"Access":	1,
								"Names":	[{
										"_Type":	"Ident",
										"Name":	"b"
									}]
							}]
					},
					"Methods":	[]
				}
			}],
		"includes":	[],
		"macros":	[]
	}
}

TestUnionDecl Case 3:
{
	"temp.h":	{
		"_Type":	"File",
		"decls":	[{
				"_Type":	"TypeDecl",
				"Loc":	{
					"_Type":	"Location",
					"File":	"temp.h"
				},
				"Doc":	null,
				"Parent":	null,
				"Name":	{
					"_Type":	"Ident",
					"Name":	"OuterUnion"
				},
				"Type":	{
					"_Type":	"RecordType",
					"Tag":	1,
					"Fields":	{
						"_Type":	"FieldList",
						"List":	[{
								"_Type":	"Field",
								"Type":	{
									"_Type":	"BuiltinType",
									"Kind":	6,
									"Flags":	0
								},
								"Doc":	null,
								"Comment":	null,
								"IsStatic":	false,
								"Access":	1,
								"Names":	[{
										"_Type":	"Ident",
										"Name":	"i"
									}]
							}, {
								"_Type":	"Field",
								"Type":	{
									"_Type":	"BuiltinType",
									"Kind":	8,
									"Flags":	0
								},
								"Doc":	null,
								"Comment":	null,
								"IsStatic":	false,
								"Access":	1,
								"Names":	[{
										"_Type":	"Ident",
										"Name":	"f"
									}]
							}, {
								"_Type":	"Field",
								"Type":	{
									"_Type":	"RecordType",
									"Tag":	1,
									"Fields":	{
										"_Type":	"FieldList",
										"List":	[{
												"_Type":	"Field",
												"Type":	{
													"_Type":	"BuiltinType",
													"Kind":	6,
													"Flags":	0
												},
												"Doc":	null,
												"Comment":	null,
												"IsStatic":	false,
												"Access":	1,
												"Names":	[{
														"_Type":	"Ident",
														"Name":	"c"
													}]
											}, {
												"_Type":	"Field",
												"Type":	{
													"_Type":	"BuiltinType",
													"Kind":	6,
													"Flags":	32
												},
												"Doc":	null,
												"Comment":	null,
												"IsStatic":	false,
												"Access":	1,
												"Names":	[{
														"_Type":	"Ident",
														"Name":	"s"
													}]
											}]
									},
									"Methods":	[]
								},
								"Doc":	null,
								"Comment":	null,
								"IsStatic":	false,
								"Access":	1,
								"Names":	[{
										"_Type":	"Ident",
										"Name":	"inner"
									}]
							}]
					},
					"Methods":	[]
				}
			}],
		"includes":	[],
		"macros":	[]
	}
}


#stderr

#exit 0
