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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! { dg-options "-fno-whole-file" }
3
!
4
! PR fortran/42051
5
! PR fortran/44064
6
! Access to freed symbols
7
!
8
! Testcase provided by Damian Rouson ,
9
! reduced by Janus Weil .
10
 
11
module grid_module
12
  implicit none
13
  type grid
14
  end type
15
  type field
16
    type(grid) :: mesh
17
  end type
18
contains
19
  real function return_x(this)
20
    class(grid) :: this
21
  end function
22
end module
23
 
24
module field_module
25
  use grid_module, only: field,return_x
26
  implicit none
27
contains
28
  subroutine output(this)
29
    class(field) :: this
30
    print *,return_x(this%mesh)
31
  end subroutine
32
end module
33
 
34
end
35
 
36
! { dg-final { cleanup-modules "grid_module field_module" } }

powered by: WebSVN 2.1.0

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