diff options
author | Marcelo Matus <mmatus@acms.arizona.edu> | 2005-10-17 13:43:35 +0000 |
---|---|---|
committer | Marcelo Matus <mmatus@acms.arizona.edu> | 2005-10-17 13:43:35 +0000 |
commit | 0ac2c4ea77a9aac2c8dc5f912b76cd7668497ec7 (patch) | |
tree | d01e9c14c952a2bfb1a12125ba4b2e66ff06388e /Examples/test-suite | |
parent | 6bb78221ff807adf639ee8f02669b440e359e965 (diff) | |
download | swig-0ac2c4ea77a9aac2c8dc5f912b76cd7668497ec7.tar.gz |
added more cases
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7672 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Examples/test-suite')
-rw-r--r-- | Examples/test-suite/class_scope_weird.i | 26 | ||||
-rw-r--r-- | Examples/test-suite/python/class_scope_weird_runme.py | 1 |
2 files changed, 24 insertions, 3 deletions
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 |