Add C runtime test for corresponding C++ basic template test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13573 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
2dac491434
commit
d272709899
2 changed files with 14 additions and 0 deletions
|
|
@ -24,6 +24,7 @@ CPP_TEST_CASES += \
|
|||
cpp_basic_global_var_class \
|
||||
cpp_basic_namespaced_class \
|
||||
cpp_basic_template_function \
|
||||
cpp_basic_template_class \
|
||||
c_backend_cpp_natural_std_string \
|
||||
c_backend_cpp_exception
|
||||
|
||||
|
|
|
|||
13
Examples/test-suite/c/cpp_basic_template_class_runme.c
Normal file
13
Examples/test-suite/c/cpp_basic_template_class_runme.c
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#include <assert.h>
|
||||
#include "cpp_basic_template_class/cpp_basic_template_class_proxy.h"
|
||||
|
||||
int main() {
|
||||
MyTemplateClass_Int *ci = new_MyTemplateClass_Int();
|
||||
|
||||
MyTemplateClass_Int_someMemberVariable_set(ci, 42);
|
||||
assert(MyTemplateClass_Int_someMemberVariable_get(ci) == 42);
|
||||
|
||||
delete_MyTemplateClass_Int(ci);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue