blob: 84b09fd7888a03ed1256b505bc6d9bbefb63aa7e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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() { complex r; return r; }
std::complex<double> test2() { std::complex<double> r; return r; }
};
%}
|