Debian Codegraph @

gcc/testsuite/gfortran.dg/pr89664.f90

raw
1 ! { dg-do compile }
2 ! { dg-options "-Ofast" }
3
4 subroutine s (x)
5 real :: x
6 call sub (x)
7 end
8 subroutine sub (x)
9 real :: x, y
10 logical :: a, b
11 real :: f1, f2, f3, f4
12 y = f1()
13 a = .false.
14 if ( f2() > f3() ) a = .true.
15 b = .false.
16 if ( f2() > f4() ) b = .true.
17 if ( a ) then
18 x = 1.0
19 else if ( b ) then
20 x = 1.0/y**2
21 else
22 x = 1.0/y - y**2
23 end if
24 end