2 ! { dg-options "-std=f95" }
6 ! Check for F2003 rejection of pointer remappings.
8 ! Contributed by Daniel Kraft, d@domob.eu.
12 INTEGER, TARGET
:: arr(12)
13 INTEGER, POINTER :: vec(:), mat(:, :)
15 vec
=> arr
! This is ok.
17 vec(2:) => arr
! { dg-error "Fortran 2003" }
18 mat(1:2, 1:6) => arr
! { dg-error "Fortran 2003" }