diff options
author | Araq <rumpf_a@web.de> | 2014-06-28 13:58:32 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-06-28 13:58:32 +0200 |
commit | c71d7213e80419d412d6f7cacc2430f047d30d94 (patch) | |
tree | d109d120198ee395244a10a43034e7741f194027 /compiler/c2nim/tests/struct_anonym.h | |
parent | 684865babbf8d86f9ef3fb87472aa8c7cb988759 (diff) | |
parent | 9ea0d0c59e5f07b473f8c7bbb60ccb74bc0b8c63 (diff) | |
download | Nim-c71d7213e80419d412d6f7cacc2430f047d30d94.tar.gz |
Merge branch 'devel' of https://github.com/Araq/Nimrod into new_spawn
Diffstat (limited to 'compiler/c2nim/tests/struct_anonym.h')
-rw-r--r-- | compiler/c2nim/tests/struct_anonym.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/compiler/c2nim/tests/struct_anonym.h b/compiler/c2nim/tests/struct_anonym.h new file mode 100644 index 000000000..859bfc206 --- /dev/null +++ b/compiler/c2nim/tests/struct_anonym.h @@ -0,0 +1,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; +}; \ No newline at end of file |