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@5415 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b0d7c1194d
commit
66e3262dda
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.)
|
||||
CPP_TEST_BROKEN += \
|
||||
template_typedef_cplx5 \
|
||||
array_typedef_memberin \
|
||||
defvalue_constructor \
|
||||
exception_order \
|
||||
|
|
|
|||
22
SWIG/Examples/test-suite/template_typedef_cplx5.i
Normal file
22
SWIG/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