From 24f8f5ec5601be86dd79c3c593e8640209f87510 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tobias=20Schl=C3=BCter?= Date: Tue, 18 May 2004 02:13:51 +0200 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gfortran.fortran-torture/execute/cmplx.f90 | 3 +++ 2 files changed, 8 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 82a596b454a..4e51763b522 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2004-05-18 Tobias Schlueter + + * gfortran.fortran-torture/execute/cmplx.f90: Add test for bug in + constant folding. + 2004-05-17 Steven Bosscher * 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 8e434c03342..edec983d39e 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 -- 2.30.2