diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/20030707-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/20030707-1.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/20030707-1.c b/gcc/testsuite/gcc.dg/20030707-1.c new file mode 100644 index 000000000..cd3e88ebb --- /dev/null +++ b/gcc/testsuite/gcc.dg/20030707-1.c @@ -0,0 +1,16 @@ +/* Derived from PR target/10979. */ +/* This testcase used to ICE on x86. */ +/* { dg-do compile } */ +/* { dg-options "-O2 -ffast-math" } */ + +void t(double); +double atan2(double,double); + +void temp(double *c) +{ + double c2 = 8; + double s2 = 0; + *c = atan2(s2,c2); + t(1/s2); +} + |