OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [pointer_check_11.f90] - Blame information for rev 694

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do run }
2
! { dg-options "-fcheck=all" }
3
!
4
! { dg-shouldfail "Pointer check" }
5
! { dg-output "Fortran runtime error: Pointer actual argument 'y' is not associated" }
6
!
7
!
8
! PR fortran/50718
9
!
10
! Was failing (ICE) with -fcheck=pointer if the dummy had the value attribute.
11
 
12
type t
13
  integer :: p
14
end type t
15
 
16
type(t), pointer :: y => null()
17
 
18
call sub(y) ! Invalid: Nonassociated pointer
19
 
20
contains
21
  subroutine sub (x)
22
    type(t), value :: x
23
  end subroutine
24
end

powered by: WebSVN 2.1.0

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