diff --git a/Examples/test-suite/arrayref.i b/Examples/test-suite/arrayref.i new file mode 100644 index 000000000..f9c4df786 --- /dev/null +++ b/Examples/test-suite/arrayref.i @@ -0,0 +1,14 @@ +// A function that passes arrays by reference + +%module arrayref + +%inline %{ + +void foo(const int (&x)[10]) { +} + +void bar(int (&x)[10]) { +} +%} + + diff --git a/Examples/test-suite/common.mk b/Examples/test-suite/common.mk index 783b6f050..464f9d882 100644 --- a/Examples/test-suite/common.mk +++ b/Examples/test-suite/common.mk @@ -43,6 +43,7 @@ DYNAMIC_LIB_PATH = $(RUNTIMEDIR):. # C++ test cases. (Can be run individually using make testcase.cpptest.) CPP_TEST_BROKEN = \ + arrayref \ abstract_typedef \ namespace_nested \ template_default_arg \