add a new testcase testing combinations of STL types... just vector and pair at the moment
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11509 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
22c0b83cef
commit
77096c878b
2 changed files with 16 additions and 0 deletions
|
|
@ -405,6 +405,7 @@ CPP_TEST_CASES += \
|
|||
CPP_STD_TEST_CASES += \
|
||||
director_string \
|
||||
ignore_template_constructor \
|
||||
li_std_combinations \
|
||||
li_std_deque \
|
||||
li_std_except \
|
||||
li_std_pair \
|
||||
|
|
|
|||
15
Examples/test-suite/li_std_combinations.i
Normal file
15
Examples/test-suite/li_std_combinations.i
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
%module li_std_combinations
|
||||
|
||||
%include <std_vector.i>
|
||||
%include <std_string.i>
|
||||
%include <std_pair.i>
|
||||
|
||||
%template(VectorInt) std::vector<int>;
|
||||
%template(VectorString) std::vector<std::string>;
|
||||
%template(PairIntString) std::pair<int, std::string>;
|
||||
|
||||
%template(VectorPairIntString) std::vector< std::pair<int, std::string> >;
|
||||
%template(PairIntVectorString) std::pair< int, std::vector<std::string> >;
|
||||
|
||||
%template(VectorVectorString) std::vector< std::vector<std::string> >;
|
||||
%template(PairIntPairIntString) std::pair< int, std::pair<int, std::string> >;
|
||||
Loading…
Add table
Add a link
Reference in a new issue