From 0ac2c4ea77a9aac2c8dc5f912b76cd7668497ec7 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Mon, 17 Oct 2005 13:43:35 +0000 Subject: added more cases git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7672 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/test-suite/class_scope_weird.i | 26 +++++++++++++++++++--- .../test-suite/python/class_scope_weird_runme.py | 1 + 2 files changed, 24 insertions(+), 3 deletions(-) (limited to 'Examples/test-suite') diff --git a/Examples/test-suite/class_scope_weird.i b/Examples/test-suite/class_scope_weird.i index 921d2cd53..74155478c 100644 --- a/Examples/test-suite/class_scope_weird.i +++ b/Examples/test-suite/class_scope_weird.i @@ -3,9 +3,29 @@ %inline %{ class Foo { public: - int Foo::bar(int x) { - return x; - } + Foo::Foo(void) + { + } + + Foo::Foo(int) + { + } + + int Foo::bar(int x) { + return x; + } +}; + +class quat; +class matrix4; +class tacka3; + +class quat { +public: + quat::quat(void){} + quat::quat(float in_w, float x, float y, float z){} + quat::quat(const tacka3& axis, float angle){} + quat::quat(const matrix4& m){} }; %} diff --git a/Examples/test-suite/python/class_scope_weird_runme.py b/Examples/test-suite/python/class_scope_weird_runme.py index 359a761b9..5c91d441f 100644 --- a/Examples/test-suite/python/class_scope_weird_runme.py +++ b/Examples/test-suite/python/class_scope_weird_runme.py @@ -1,5 +1,6 @@ import class_scope_weird f = class_scope_weird.Foo() +g = class_scope_weird.Foo(3) if f.bar(3) != 3: raise RuntimeError -- cgit v1.2.1