view gcc/testsuite/gfortran.dg/subroutine_as_type.f90 @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
line wrap: on
line source


subroutine t()
  type t  ! { dg-error "FUNCTION attribute conflicts with SUBROUTINE attribute" }
  end type t ! { dg-error "Expecting END SUBROUTINE statement" }
  type, extends(t) :: t2   ! { dg-error "has not been previously defined" }
  end type t2 ! { dg-error "Expecting END SUBROUTINE statement" }
end