summaryrefslogtreecommitdiff
path: root/Examples/test-suite/cpp_static.i
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/cpp_static.i')
-rw-r--r--Examples/test-suite/cpp_static.i26
1 files changed, 26 insertions, 0 deletions
diff --git a/Examples/test-suite/cpp_static.i b/Examples/test-suite/cpp_static.i
new file mode 100644
index 0000000..c68e986
--- /dev/null
+++ b/Examples/test-suite/cpp_static.i
@@ -0,0 +1,26 @@
+/*
+Testcase to test c++ static member variables and static functions.
+Tests Sourceforge bug #444748.
+*/
+
+%module cpp_static
+
+%inline %{
+
+class StaticMemberTest {
+public:
+ static int static_int;
+};
+
+class StaticFunctionTest {
+public:
+ static void static_func() {};
+ static void static_func_2(int param_1) {};
+ static void static_func_3(int param_1, int param_2) {};
+};
+
+%}
+
+%{
+int StaticMemberTest::static_int;
+%}