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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! Tests the fix for PR37274 comment 4 in which the use associated 'vector' was
3
! passed up from the interface to the module 'tools_math'.
4
!
5
! Contributed by Mikael Morin  
6
!
7
module class_vector
8
  implicit none
9
  type vector
10
  end type vector
11
end module class_vector
12
 
13
module tools_math
14
  implicit none
15
  interface lin_interp
16
     function lin_interp_v()
17
       use class_vector
18
       type(vector) :: lin_interp_v
19
     end function lin_interp_v
20
  end interface
21
end module tools_math
22
 
23
module smooth_mesh
24
  use tools_math
25
  implicit none
26
  type(vector ) :: new_pos  ! { dg-error "used before it is defined" }
27
end module smooth_mesh
28
 
29
! { dg-final { cleanup-modules "class_vector tools_math smooth_mesh" } }

powered by: WebSVN 2.1.0

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