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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [lto/] [pr45586-2_0.f90] - Blame information for rev 749

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

Line No. Rev Author Line
1 694 jeremybenn
! { dg-lto-do link }
2
!
3
! PR fortran/45586 (comment 53)
4
!
5
 
6
MODULE M1
7
  INTEGER, PARAMETER :: dp=8
8
  TYPE realspace_grid_type
9
     REAL(KIND=dp), DIMENSION ( :, :, : ), ALLOCATABLE :: r
10
  END TYPE realspace_grid_type
11
  TYPE realspace_grid_p_type
12
     TYPE(realspace_grid_type), POINTER :: rs_grid
13
  END TYPE realspace_grid_p_type
14
  TYPE realspaces_grid_p_type
15
     TYPE(realspace_grid_p_type), DIMENSION(:), POINTER :: rs
16
  END TYPE realspaces_grid_p_type
17
END MODULE
18
 
19
MODULE M2
20
 USE M1
21
CONTAINS
22
 SUBROUTINE S1()
23
  INTEGER :: i,j
24
  TYPE(realspaces_grid_p_type), DIMENSION(:), POINTER :: rs_gauge
25
  REAL(dp), DIMENSION(:, :, :), POINTER    :: y
26
  y=>rs_gauge(i)%rs(j)%rs_grid%r
27
 END SUBROUTINE
28
END MODULE
29
 
30
USE M2
31
  CALL S1()
32
END
33
 
34
! { dg-final { cleanup-modules "m1 m2" } }

powered by: WebSVN 2.1.0

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