From c3aaf6c95462c8b1f126e3e2dfb4d65db0508e15 Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Thu, 9 Aug 2007 21:36:27 +0000 Subject: 2007-08-09 Andrew Pinski PR middle-end/32813 * fold-const.c (omit_one_operand): Return only the ommitted expression if the result is an empty statement. (pedantic_omit_one_operand): Likewise. 2007-08-09 Andrew Pinski PR middle-end/32813 * gfortran.fortran-torture/compile/emptyif-1.f90: New test. * lib/fortran-torture.exp (fortran-torture): Use TORTURE_OPTIONS instead of just -O. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@127322 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/gfortran.fortran-torture/compile/emptyif-1.f90 | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 gcc/testsuite/gfortran.fortran-torture/compile/emptyif-1.f90 (limited to 'gcc/testsuite/gfortran.fortran-torture') diff --git a/gcc/testsuite/gfortran.fortran-torture/compile/emptyif-1.f90 b/gcc/testsuite/gfortran.fortran-torture/compile/emptyif-1.f90 new file mode 100644 index 00000000000..bdce67db9ea --- /dev/null +++ b/gcc/testsuite/gfortran.fortran-torture/compile/emptyif-1.f90 @@ -0,0 +1,10 @@ +program emptyif + + implicit none + integer i,K(4) + + if (K(i)==0) then + ! do absolutely nothing + end if + +end program -- cgit v1.2.3