cmplx.f90: Add test for bug in constant folding.
authorTobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
Tue, 18 May 2004 00:13:51 +0000 (02:13 +0200)
committerTobias Schlüter <tobi@gcc.gnu.org>
Tue, 18 May 2004 00:13:51 +0000 (02:13 +0200)
* gfortran.fortran-torture/execute/cmplx.f90: Add test for bug in
constant folding.

From-SVN: r81961

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.fortran-torture/execute/cmplx.f90

index 82a596b454afe4b30c623d9567cdad770b90b3dd..4e51763b522cabc59e7d59c851d97cf0f03e735c 100644 (file)
@@ -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.
index 8e434c03342c163324b54f01f8c71cfd0b73d4d3..edec983d39e9d594d0e209d2fc47f6fecd10b0bc 100644 (file)
@@ -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