Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.fortran-torture/execute/emptyif.f90 @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
! Test empty if statements. We Used to fail this because we folded ! the if stmt before we finished building it. program emptyif implicit none integer i i=1 if(i .le. 0) then else i = 2 endif if (i .ne. 2) STOP 1 if (i .eq. 0) then elseif (i .eq. 2) then i = 3 end if if (i .ne. 3) STOP 2 end