From cc77dfe436f3ddb1a3fa0822a5f136606ec42123 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Fri, 31 Jan 2003 22:01:53 +0000 Subject: [PATCH] New test case - passing arrays by reference (needs fixing) git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4249 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/test-suite/arrayref.i | 14 ++++++++++++++ Examples/test-suite/common.mk | 1 + 2 files changed, 15 insertions(+) create mode 100644 Examples/test-suite/arrayref.i 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 \