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

Subversion Repositories openrisc

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

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 45828: [4.6 Regression] No default initialization of derived type members?
4
!
5
! Contributed by Juha 
6
 
7
program fail1
8
   type a
9
      integer :: i
10
   end type a
11
 
12
   type b
13
     type(a) :: acomp = a(5)
14
   end type b
15
 
16
   type(b), allocatable :: c(:)
17
 
18
   allocate(c(1))
19
   if (c(1) % acomp % i /= 5) call abort()
20
end program fail1

powered by: WebSVN 2.1.0

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