Added test for simple template +typedef combinations that produce an inf. recursion, and then seg fault
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5415 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
5a286c6c10
commit
0bfce10a2b
2 changed files with 23 additions and 0 deletions
|
|
@ -45,6 +45,7 @@ DYNAMIC_LIB_PATH = $(RUNTIMEDIR):.
|
||||||
|
|
||||||
# Broken C++ test cases. (Can be run individually using make testcase.cpptest.)
|
# Broken C++ test cases. (Can be run individually using make testcase.cpptest.)
|
||||||
CPP_TEST_BROKEN += \
|
CPP_TEST_BROKEN += \
|
||||||
|
template_typedef_cplx5 \
|
||||||
array_typedef_memberin \
|
array_typedef_memberin \
|
||||||
defvalue_constructor \
|
defvalue_constructor \
|
||||||
exception_order \
|
exception_order \
|
||||||
|
|
|
||||||
22
Examples/test-suite/template_typedef_cplx5.i
Normal file
22
Examples/test-suite/template_typedef_cplx5.i
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
%module template_typedef_cplx5
|
||||||
|
|
||||||
|
%{
|
||||||
|
#include <complex>
|
||||||
|
%}
|
||||||
|
|
||||||
|
|
||||||
|
%inline %{
|
||||||
|
|
||||||
|
// This typedef triggers an inifinite recursion
|
||||||
|
// in the next test1() nd test2() function declarations
|
||||||
|
|
||||||
|
typedef std::complex<double> complex;
|
||||||
|
|
||||||
|
struct A
|
||||||
|
{
|
||||||
|
complex test1();
|
||||||
|
std::complex<double> test2();
|
||||||
|
};
|
||||||
|
|
||||||
|
%}
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue