PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / dec_loc_rval_1.f90
blob0d27f51cf8df2104b22c189815a731497e52821b
1 ! { dg-do run }
2 ! { dg-options "-std=legacy" }
4 ! Test the usage of %loc as an rvalue.
6 program main
7 implicit none
9 integer :: i, j, k
11 i = loc(j)
12 k = %loc(j)
14 if (i .ne. k) then
15 print *, "bad %loc value"
16 STOP 1
17 endif
19 end