view gcc/testsuite/gfortran.dg/pointer_check_8.f90 @ 118:fd00160c1b76

ifdef TARGET_64BIT
author mir3636
date Tue, 27 Feb 2018 15:01:35 +0900
parents 04ced10e8804
children
line wrap: on
line source

! { dg-do compile }
! { dg-options "-fcheck=pointer" }
!
! PR 46809: [OOP] ICE with -fcheck=pointer for CLASS IS
!
! Contributed by Salvatore Filippone <sfilippone@uniroma2.it>

  type t
  end type t

contains

  subroutine sub(a)
    class(t) :: a
    select type (a)
      class is (t)
        print *, 'Hi there'
    end select
  end subroutine

end