view gcc/testsuite/gfortran.dg/class_56.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 }
! Test fix for PR56575.
!
! Contributed by A Kasahara  <latlon90180+gcc_bugzilla@gmail.com>
!
module lib_container
  implicit none

  type:: Object
  end type Object

  type:: Container
    class(Object):: v ! { dg-error "must be allocatable or pointer" }
  end type Container

contains

  subroutine proc(self)
    class(Container), intent(inout):: self
  end subroutine proc
end module lib_container