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/] [multiple_allocation_2.f90] - Blame information for rev 437

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

Line No. Rev Author Line
1 302 jeremybenn
! { dg-do run }
2
! PR 27470: This used fail because of confusion between
3
!           mol (allocatable) and mol(1)%array(:) (pointer).
4
!           Derived from a test case by FX Coudert.
5
PROGRAM MAIN
6
  TYPE foo
7
    INTEGER, DIMENSION(:), POINTER :: array
8
  END TYPE foo
9
 
10
  type(foo),allocatable,dimension(:) :: mol
11
 
12
  ALLOCATE (mol(1))
13
  ALLOCATE (mol(1)%array(5))
14
  ALLOCATE (mol(1)%array(5))
15
 
16
  END

powered by: WebSVN 2.1.0

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