Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gfortran.fortran-torture / execute / emptyif.f90
blobb5b72957b9eea71dcbc4b072e2be8c88db95cbdc
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
7 i=1
8 if(i .le. 0) then
9 else
10 i = 2
11 endif
12 if (i .ne. 2) STOP 1
14 if (i .eq. 0) then
15 elseif (i .eq. 2) then
16 i = 3
17 end if
18 if (i .ne. 3) STOP 2
19 end