Add C runtime test for basic C++ template functions
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13568 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
0a646835d2
commit
698d1851c3
2 changed files with 9 additions and 0 deletions
|
|
@ -23,6 +23,7 @@ CPP_TEST_CASES += \
|
||||||
cpp_basic_global_var_atom \
|
cpp_basic_global_var_atom \
|
||||||
cpp_basic_global_var_class \
|
cpp_basic_global_var_class \
|
||||||
cpp_basic_namespaced_class \
|
cpp_basic_namespaced_class \
|
||||||
|
cpp_basic_template_function \
|
||||||
c_backend_cpp_natural_std_string \
|
c_backend_cpp_natural_std_string \
|
||||||
c_backend_cpp_exception
|
c_backend_cpp_exception
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
#include <assert.h>
|
||||||
|
#include "cpp_basic_template_function/cpp_basic_template_function_proxy.h"
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
assert(GetMaxInt(3, 5) == 5);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue