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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.fortran-torture/] [execute/] [der_init_5.f90] - Blame information for rev 695

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 695 jeremybenn
! Check that null initialization of pointer components works.
2
! PR 15969 prompted these
3
! the commented out tests are cases where we still fail
4
program der_init_5
5
  type t
6
     type(t), pointer :: a => NULL()
7
     real, pointer :: b => NULL()
8
     character, pointer :: c => NULL()
9
     integer, pointer, dimension(:) :: d => NULL()
10
  end type t
11
  type (t) :: p
12
  if (associated(p%a)) call abort()
13
  if (associated(p%b)) call abort()
14
!  if (associated(p%c)) call abort()
15
  if (associated(p%d)) call abort()
16
end

powered by: WebSVN 2.1.0

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