diff --git a/tests/run/builtincomplex.pyx b/tests/run/builtincomplex.pyx index fc73f0849ccbec8fffb2bb35a9878a5470b972f5..48838fccf1f0f8d234e54409daccfa64100a3a90 100644 --- a/tests/run/builtincomplex.pyx +++ b/tests/run/builtincomplex.pyx @@ -52,3 +52,14 @@ def complex_conjugate_nonsimple_float(): """ x = float(1.0).conjugate() return x + +cdef double float_result(): + return 1.0 + +def complex_conjugate_nonsimple(): + """ + >>> complex_conjugate_nonsimple() + 1.0 + """ + x = float_result().conjugate() + return x