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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! PR 15975, PR 16606
3
! Pointers to derived types with initialized components
4
!
5
! Contributed by Erik Edelmann 
6
!
7
SUBROUTINE N
8
  TYPE T
9
    INTEGER :: I = 99
10
  END TYPE T
11
  TYPE(T), POINTER :: P
12
  TYPE(T), TARGET  :: Q
13
  P => Q
14
  if (P%I.ne.99) call abort ()
15
END SUBROUTINE N
16
 
17
program test_pr15975
18
  call n ()
19
end program test_pr15975
20
 

powered by: WebSVN 2.1.0

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