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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do run }
2
!
3
! PR 40594: [4.5 Regression] wrong-code
4
!
5
! Original test case by Daniel Franke 
6
! Modified by Janus Weil 
7
 
8
MODULE atom_types
9
 
10
TYPE :: atom_list
11
  TYPE(atom_private), DIMENSION(:), pointer :: table
12
END TYPE
13
 
14
TYPE :: atom_private
15
  TYPE(atom_list) :: neighbours
16
  LOGICAL         :: initialized = .true.
17
END TYPE
18
 
19
TYPE :: atom_model
20
  TYPE(atom_list) :: atoms
21
  integer         :: dummy
22
END TYPE
23
 
24
contains
25
 
26
  SUBROUTINE init(this)
27
    TYPE(atom_private) :: this
28
    this%initialized = .FALSE.
29
  END SUBROUTINE
30
 
31
END MODULE
32
 
33
 
34
program pr40594
35
 
36
  USE atom_types
37
  TYPE(atom_model) :: am
38
  type(atom_private) :: ap
39
 
40
  am%dummy = 0
41
 
42
  call init(ap)
43
  if (ap%initialized .neqv. .false.) call abort()
44
 
45
END
46
 
47
! { dg-final { cleanup-modules "atom_types" } }
48
 

powered by: WebSVN 2.1.0

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