From: Tobias Schlüter Date: Tue, 18 May 2004 00:13:51 +0000 (+0200) Subject: cmplx.f90: Add test for bug in constant folding. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=24f8f5ec5601be86dd79c3c593e8640209f87510;p=gcc.git 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 --- 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