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:
Marcelo Matus 2003-11-26 08:49:55 +00:00
commit 66e3262dda
2 changed files with 23 additions and 0 deletions

View file

@ -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 \

View 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();
};
%}