Mercurial > hg > CbC > CbC_gcc
annotate 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 |
rev | line source |
---|---|
111 | 1 ! Test empty if statements. We Used to fail this because we folded |
2 ! the if stmt before we finished building it. | |
3 program emptyif | |
4 implicit none | |
5 integer i | |
6 | |
7 i=1 | |
8 if(i .le. 0) then | |
9 else | |
10 i = 2 | |
11 endif | |
131 | 12 if (i .ne. 2) STOP 1 |
111 | 13 |
14 if (i .eq. 0) then | |
15 elseif (i .eq. 2) then | |
16 i = 3 | |
17 end if | |
131 | 18 if (i .ne. 3) STOP 2 |
111 | 19 end |
20 |