From 4bbfb952a5442031b438eb8dc44c859e87c14486 Mon Sep 17 00:00:00 2001 From: Emilio Cobos Álvarez Date: Fri, 25 Mar 2016 17:28:29 +0100 Subject: parser: Generate fields for anonymous unions --- tests/headers/class_with_inner_struct.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/headers/class_with_inner_struct.hpp') diff --git a/tests/headers/class_with_inner_struct.hpp b/tests/headers/class_with_inner_struct.hpp index 40199ccc..5f57a1c0 100644 --- a/tests/headers/class_with_inner_struct.hpp +++ b/tests/headers/class_with_inner_struct.hpp @@ -1,6 +1,12 @@ class A { unsigned c; struct Segment { int begin, end; }; + union { + int f; + } named_union; + union { + int d; + }; }; class B { -- cgit v1.2.3