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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
!
3
! PR 44434: [OOP] ICE in in gfc_add_component_ref
4
!
5
! Contributed by Salvatore Filippone 
6
 
7
module foo_mod
8
  type foo
9
  contains
10
    procedure :: doit
11
    generic :: do => doit
12
  end type
13
contains
14
  subroutine  doit(a)
15
    class(foo) :: a
16
  end subroutine
17
end module
18
 
19
program testd15
20
contains
21
  subroutine dodo(x)
22
    use foo_mod
23
    class(foo) :: x
24
    call x%do()
25
  end subroutine
26
end
27
 
28
! { dg-final { cleanup-modules "foo_mod" } }

powered by: WebSVN 2.1.0

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