1# mode: run
2# ticket: 693
3
4cdef double complex func(double complex x):
5 print "hello"
6 return x
7
8def test_coercion():
9 """
10 >>> c = test_coercion()
11 hello
12 >>> c.real == 0.5
13 True
14 >>> c.imag == 1.5
15 True
16 """
17 cdef object x = func(0.5 + 1.5j)
18 return x
19