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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! { dg-options "-fcheck=pointer" }
3
!
4
! PR 45438: [4.6 Regression] [OOP] ICE with -fcheck=pointer
5
!
6
! Contributed by Salvatore Filippone 
7
 
8
module base_mat_mod
9
 
10
  implicit none
11
 
12
  type  :: base_sparse_mat
13
  contains
14
    procedure :: get_fmt
15
  end type
16
 
17
contains
18
 
19
  function get_fmt(a) result(res)
20
    class(base_sparse_mat), intent(in) :: a
21
    character(len=5) :: res
22
    res = 'NULL'
23
  end function
24
 
25
  subroutine errlog(name)
26
    character(len=*) :: name
27
  end subroutine
28
 
29
  subroutine test (a)
30
    class(base_sparse_mat), intent(in) :: a
31
    call errlog(a%get_fmt())
32
  end subroutine
33
 
34
end module
35
 
36
! { dg-final { cleanup-modules "base_mat_mod" } }

powered by: WebSVN 2.1.0

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