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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [implicit_actual.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 patch for problem that was found whilst investigating
3
! PR24158. The call to foo would cause an ICE because the
4
! actual argument was of a type that was not defined.  The USE
5
! GLOBAL was commented out, following the fix for PR29364.
6
!
7
! Contributed by Paul Thomas 
8
!
9
module global
10
  type :: t2
11
    type(t3), pointer :: d ! { dg-error "has not been declared" }
12
  end type t2
13
end module global
14
 
15
program snafu
16
!  use global
17
  implicit type (t3) (z)
18
 
19
  call foo (zin) ! { dg-error "defined|Type mismatch" }
20
 
21
contains
22
 
23
  subroutine foo (z)
24
 
25
    type :: t3
26
      integer :: i
27
    end type t3
28
 
29
    type(t3)  :: z
30
    z%i = 1
31
 
32
  end subroutine foo
33
end program snafu
34
 
35
! { dg-final { cleanup-modules "global" } }

powered by: WebSVN 2.1.0

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