aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorTobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>2004-05-18 02:13:51 +0200
committerTobias Schlüter <tobi@gcc.gnu.org>2004-05-18 02:13:51 +0200
commit24f8f5ec5601be86dd79c3c593e8640209f87510 (patch)
tree0f4fe14125dfb8d17bfc8c7ec6952a708d6be852 /gcc
parentf12f786b8679b37570b3509ae1c11453830c47b0 (diff)
downloadgcc-24f8f5ec5601be86dd79c3c593e8640209f87510.zip
gcc-24f8f5ec5601be86dd79c3c593e8640209f87510.tar.gz
gcc-24f8f5ec5601be86dd79c3c593e8640209f87510.tar.bz2
cmplx.f90: Add test for bug in constant folding.
* gfortran.fortran-torture/execute/cmplx.f90: Add test for bug in constant folding. From-SVN: r81961
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gfortran.fortran-torture/execute/cmplx.f903
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 82a596b..4e51763 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2004-05-18 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
+
+ * gfortran.fortran-torture/execute/cmplx.f90: Add test for bug in
+ constant folding.
+
2004-05-17 Steven Bosscher <stevenb@suse.de>
* gcc.dg/tree-ssa/20040517-1.c: New test.
diff --git a/gcc/testsuite/gfortran.fortran-torture/execute/cmplx.f90 b/gcc/testsuite/gfortran.fortran-torture/execute/cmplx.f90
index 8e434c0..edec983 100644
--- a/gcc/testsuite/gfortran.fortran-torture/execute/cmplx.f90
+++ b/gcc/testsuite/gfortran.fortran-torture/execute/cmplx.f90
@@ -42,4 +42,7 @@ program testcmplx
if (c + d .ne. ( 6, 5)) call abort
if (c - d .ne. (-4, 1)) call abort
if (c * d .ne. (-1, 17)) call abort
+
+ ! test for constant folding
+ if ((35.,-10.)**0.NE.(1.,0.)) call abort
end program