OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [pointer_intent_2.f90] - Rev 302

Compare with Previous | Blame | View Log

! { dg-do compile }
! { dg-options "-std=f95" }
! { dg-shouldfail "Fortran 2003 feature with -std=f95" }
!
! Pointer intent test
! PR fortran/29624
!
! Fortran 2003 features in Fortran 95
program test
 implicit none
 integer, pointer :: p
 allocate(p)
 p = 33
 call a(p) ! { dg-error "Type mismatch in argument" }
contains
  subroutine a(p)! { dg-error "has no IMPLICIT type" }
    integer, pointer,intent(in) :: p ! { dg-error "POINTER attribute with INTENT attribute" }
  end subroutine
end program

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.