aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.fortran-torture/compile/emptyif.f90
blob: bd12d502ef88f741710edbefbde2bfea005680b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
! Program to test empty IF statements
program emptyif
   implicit none
   logical c
   logical d

   if (c) then
      c = .true.
   end if
   
   if (c) then
   else
      c = .true.
   end if

   if (c) then
      c = .true.
   else
   end if

   if (c) then
      c = .true.
   elseif (d) then
      c = .true.
   else
   end if

   if (c) then
      c = .true.
   elseif (d) then
   else
      c = .true.
   end if

   if (c) then
   elseif (d) then
      c = .true.
   else
      c = .true.
   end if

end program