diff options
author | Marcelo Matus <mmatus@acms.arizona.edu> | 2004-11-06 23:07:13 +0000 |
---|---|---|
committer | Marcelo Matus <mmatus@acms.arizona.edu> | 2004-11-06 23:07:13 +0000 |
commit | 37974faf9af643942a668ddbb0f13137cf3d6c77 (patch) | |
tree | 46709e611ffb04532836bf7960cd96e7b134bdaf /Examples/test-suite/director_basic.i | |
parent | 34f741232685438146ced97129d77cf0351e530d (diff) | |
download | swig-37974faf9af643942a668ddbb0f13137cf3d6c77.tar.gz |
new cases that show problem when mixing directors + constructor + def. args
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6681 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Examples/test-suite/director_basic.i')
-rw-r--r-- | Examples/test-suite/director_basic.i | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/Examples/test-suite/director_basic.i b/Examples/test-suite/director_basic.i index a516dfaaa..dad178b97 100644 --- a/Examples/test-suite/director_basic.i +++ b/Examples/test-suite/director_basic.i @@ -45,7 +45,7 @@ struct A{ namespace hi { - struct A1 : public A{ + struct A1 : public A { A1(std::complex<int> i, double d=0.0) : A(i, d) {} A1(int i, bool j=false) : A(i, j) {} @@ -65,6 +65,10 @@ typedef void NT; class MyClass { public: + MyClass(int a = 0) + { + } + virtual void method(NT *) { } @@ -75,4 +79,23 @@ public: }; +template<class T> +class MyClassT { +public: + MyClassT(int a = 0) + { + } + + virtual void method(NT *) + { + } + + virtual ~MyClassT() + { + } + +}; + %} + +%template(MyClassT_i) MyClassT<int>; |