diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2012-11-29 22:37:31 +0100 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2012-11-29 22:37:31 +0100 |
commit | 84b1de27d9c2b2edc64fa9de7010d79b69165a14 (patch) | |
tree | 2ccd55f30284aa6a4bc6db9a2d88165e4a113e94 /tests/run/builtincomplex.pyx | |
parent | 56c7afe131e4ee9baba796041aa460bebb0af41c (diff) | |
download | cython-84b1de27d9c2b2edc64fa9de7010d79b69165a14.tar.gz |
work around compiler crash on float().conjugate() for a trivial case by optimising it away
Diffstat (limited to 'tests/run/builtincomplex.pyx')
-rw-r--r-- | tests/run/builtincomplex.pyx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/run/builtincomplex.pyx b/tests/run/builtincomplex.pyx index 4f99c7486..fc73f0849 100644 --- a/tests/run/builtincomplex.pyx +++ b/tests/run/builtincomplex.pyx @@ -44,3 +44,11 @@ def complex_arg(complex c): (1.0, 2.0) """ return (c.real, c.imag) + +def complex_conjugate_nonsimple_float(): + """ + >>> complex_conjugate_nonsimple_float() + 1.0 + """ + x = float(1.0).conjugate() + return x |