diff options
author | Emilio Cobos Álvarez <ecoal95@gmail.com> | 2016-03-25 17:28:29 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <ecoal95@gmail.com> | 2016-03-25 18:04:50 +0100 |
commit | 4bbfb952a5442031b438eb8dc44c859e87c14486 (patch) | |
tree | 2ce719be653b3613d7e33e8f55cce67b27bdfac6 /tests/headers/class_with_inner_struct.hpp | |
parent | 0f2e06fb225b2e4c938b2d3ec8c9a5dd8f97c413 (diff) |
parser: Generate fields for anonymous unions
Diffstat (limited to 'tests/headers/class_with_inner_struct.hpp')
-rw-r--r-- | tests/headers/class_with_inner_struct.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
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 { |