summaryrefslogtreecommitdiff
path: root/Examples/test-suite/arrays_scope.i
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/arrays_scope.i')
-rw-r--r--Examples/test-suite/arrays_scope.i19
1 files changed, 19 insertions, 0 deletions
diff --git a/Examples/test-suite/arrays_scope.i b/Examples/test-suite/arrays_scope.i
new file mode 100644
index 0000000..efde11e
--- /dev/null
+++ b/Examples/test-suite/arrays_scope.i
@@ -0,0 +1,19 @@
+%module arrays_scope
+
+%inline %{
+
+enum { ASIZE = 256 };
+namespace foo {
+ enum { BBSIZE = 512 };
+ class Bar {
+ public:
+ enum { CCSIZE = 768 };
+ int adata[ASIZE];
+ int bdata[BBSIZE];
+ int cdata[CCSIZE];
+ void blah(int x[ASIZE], int y[BBSIZE], int z[CCSIZE]) { };
+ };
+}
+
+%}
+