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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [class_18.f03] - Blame information for rev 801

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

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do run }
2
!
3
! PR 43207: [OOP] ICE for class pointer => null() initialization
4
!
5
! Original test case by Tobias Burnus 
6
! Modified by Janus Weil 
7
 
8
  implicit none
9
  type :: parent
10
  end type
11
  type(parent), target :: t
12
  class(parent), pointer :: cp => null()
13
 
14
  if (associated(cp)) call abort()
15
  cp => t
16
  if (.not. associated(cp)) call abort()
17
 
18
end

powered by: WebSVN 2.1.0

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