URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [pointer_remapping_1.f90] - Rev 801
Go to most recent revision | Compare with Previous | Blame | View Log
! { dg-do compile }
! { dg-options "-std=f95" }
! PR fortran/29785
! PR fortran/45016
! Check for F2003 rejection of pointer remappings.
! Contributed by Daniel Kraft, d@domob.eu.
PROGRAM main
IMPLICIT NONE
INTEGER, TARGET :: arr(12)
INTEGER, POINTER :: vec(:), mat(:, :)
vec => arr ! This is ok.
vec(2:) => arr ! { dg-error "Fortran 2003" }
mat(1:2, 1:6) => arr ! { dg-error "Fortran 2003" }
END PROGRAM main
Go to most recent revision | Compare with Previous | Blame | View Log