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

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gfortran.dg/] [pointer_init_1.f90] - Blame information for rev 384

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 302 jeremybenn
! Check that null initialization of pointer variable works.
2
! { dg-do run }
3
program pointer_init_1
4
  type t
5
    real x
6
  end type
7
  type(t), pointer :: a => NULL()
8
  real, pointer :: b => NULL()
9
  character, pointer :: c => NULL()
10
  integer, pointer, dimension(:) :: d => NULL()
11
  if (associated(a)) call abort()
12
  if (associated(b)) call abort()
13
  if (associated(c)) call abort()
14
  if (associated(d)) call abort()
15
end

powered by: WebSVN 2.1.0

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