aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/union_scope.i
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/union_scope.i')
-rw-r--r--Examples/test-suite/union_scope.i13
1 files changed, 13 insertions, 0 deletions
diff --git a/Examples/test-suite/union_scope.i b/Examples/test-suite/union_scope.i
new file mode 100644
index 000000000..b58585c2a
--- /dev/null
+++ b/Examples/test-suite/union_scope.i
@@ -0,0 +1,13 @@
+%module union_scope
+
+%warnfilter(801) nRState; // Ruby, wrong class name
+%warnfilter(801) nRState_rstate; // Ruby, wrong class name
+
+%inline %{
+class nRState {
+public:
+ union {
+ int i;
+ } rstate;
+};
+%}