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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [pointer_init_1.f90] - Blame information for rev 853

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 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.