* cfgloopmanip.c (duplicate_loop_to_header_edge): Cleanup profile
[official-gcc.git] / gcc / testsuite / gfortran.dg / dec_loc_rval_2.f90
blob20eeb854e920493718271fcd5da1ff32c5a27c42
1 ! { dg-do compile }
2 ! { dg-options "-std=gnu" }
4 ! Test warnings for usage of %loc as an rvalue without -std=legacy.
6 program main
7 implicit none
9 integer, volatile :: i, j, k
11 i = loc(j)
12 k = %loc(j) ! { dg-warning "Legacy Extension:" }
14 end