diff options
Diffstat (limited to 'Examples/test-suite/nested_structs.i')
| -rw-r--r-- | Examples/test-suite/nested_structs.i | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Examples/test-suite/nested_structs.i b/Examples/test-suite/nested_structs.i new file mode 100644 index 0000000..4b13ff6 --- /dev/null +++ b/Examples/test-suite/nested_structs.i @@ -0,0 +1,22 @@ +%module nested_structs + +// bug #491476 +%inline %{ +struct { +struct { +int a; +} a, b; +} a; + +%} + +// bug #909387 +%inline %{ +struct foo { + struct happy; // no warning + struct sad { int x; }; // warning + happy *good(); // produces good code + sad *bad(); // produces bad code +}; +%} + |
