gcc/testsuite/gcc.dg/pr88074.c
raw| 1 | /* { dg-do compile { target c99_runtime } } */ |
| 2 | /* { dg-options "-O" } */ |
| 3 | |
| 4 | #include <complex.h> |
| 5 | |
| 6 | int main() |
| 7 | { |
| 8 | _Complex double x; |
| 9 | __real x = 3.091e+8; |
| 10 | __imag x = -4.045e+8; |
| 11 | /* This used to spend huge amounts of compile-time inside mpc. */ |
| 12 | volatile _Complex double y = ctan (x); |
| 13 | return 0; |
| 14 | } |