aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/dec_loc_rval_3.f03
blob: b3441b806eff88c4f621f0172c3a607c5ed03d39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
! { dg-do compile }
! { dg-options "-std=f2003" }
!
! Test errors for usage of %loc as an rvalue with a real standard.
!
program main
implicit none

integer, volatile :: i, j, k

k = %loc(j) ! { dg-error "Legacy Extension:" }

end