import source from 1.3.40
[external/swig.git] / Examples / test-suite / template_typedef_cplx5.i
1 %module template_typedef_cplx5
2
3 %{
4 #include <complex>
5 %}
6
7
8 %inline %{
9
10   // This typedef triggers an inifinite recursion
11   // in the next test1() nd test2() function declarations
12
13   typedef std::complex<double> complex;  
14
15   struct A 
16   {
17     complex test1() { complex r; return r; }
18     std::complex<double> test2() { std::complex<double> r; return r; }
19   };
20   
21 %}
22