[to-be-committed] [RISC-V] Use Zbkb for general 64 bit constants when profitable
[official-gcc.git] / gcc / testsuite / gfortran.dg / arithmetic_if.f90
blob995d985b5055210ec5340a18a95c6d4cf03a2b2b
1 ! { dg-do run }
2 ! { dg-options "-w" }
3 ! Test program for PR 28439
4 integer function myfunc(i)
5 integer i
6 integer, save :: value = 2
7 value = value - 1 + 0 * i
8 myfunc = value
9 end function myfunc
11 program pr28439
13 integer myfunc
15 if (myfunc(0)) 10, 20, 30 ! Should go to 30
16 10 STOP 1
17 20 STOP 2
19 30 if (myfunc(0)) 40, 50, 60 ! Should go to 50
20 40 STOP 3
21 60 STOP 4
23 50 if (myfunc(0)) 70, 80, 90 ! Should go to 70
24 80 STOP 5
25 90 STOP 6
27 70 continue
29 end program pr28439