diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/opt/copysign-1.C')
-rw-r--r-- | gcc/testsuite/g++.dg/opt/copysign-1.C | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/opt/copysign-1.C b/gcc/testsuite/g++.dg/opt/copysign-1.C new file mode 100644 index 000000000..347bec26e --- /dev/null +++ b/gcc/testsuite/g++.dg/opt/copysign-1.C @@ -0,0 +1,10 @@ +// { dg-options "-O2" } +// { dg-do compile } +// PR rtl-opt/27883 +// MIPS used to ICE because local flow update +// was not removing an invalid REG_DEAD. + + +double copysign (double x, double y); +double GetDouble(); +double a = copysign (1.0, GetDouble()); |