new test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5059 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
1ed7b341d6
commit
ec5766c20a
2 changed files with 22 additions and 0 deletions
|
|
@ -45,6 +45,7 @@ DYNAMIC_LIB_PATH = $(RUNTIMEDIR):.
|
|||
|
||||
# Broken C++ test cases. (Can be run individually using make testcase.cpptest.)
|
||||
CPP_TEST_BROKEN += \
|
||||
template_partial_arg \
|
||||
array_typedef_memberin \
|
||||
exception_order \
|
||||
template_default_arg \
|
||||
|
|
|
|||
21
SWIG/Examples/test-suite/template_partial_arg.i
Normal file
21
SWIG/Examples/test-suite/template_partial_arg.i
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
%module template_partial_arg
|
||||
|
||||
%inline %{
|
||||
template <class T> class Foo {
|
||||
public:
|
||||
T bar() { return T(); }
|
||||
T* baz() { return 0; }
|
||||
};
|
||||
|
||||
template <class T> class Foo<T*> {
|
||||
public:
|
||||
T bar() { return T(); }
|
||||
T* baz() { return 0; }
|
||||
};
|
||||
|
||||
class Bar {};
|
||||
%}
|
||||
|
||||
%template(Foo1) Foo<Bar>;
|
||||
%template(Foo2) Foo<Bar*>;
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue