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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! Tests the fix for PR34335 a regression in which the PRIVATE attribute
3
! of type(a) in module b would be ignored and would prevent it being
4
! loaded in the main program.
5
!
6
! Contributed by Janus Weil 
7
!
8
module A
9
  type A_type
10
    real comp
11
  end type
12
end module A
13
 
14
module B
15
  use A
16
  private
17
  type(A_type) :: B_var
18
  public:: B_var
19
end module B
20
 
21
program C
22
  use B
23
  use A
24
  type(A_type):: A_var
25
end program C
26
! { dg-final { cleanup-modules "a b" } }

powered by: WebSVN 2.1.0

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