3 ! PR 40940: CLASS statement
5 ! Contributed by Janus Weil <janus@gcc.gnu.org>
7 use,intrinsic :: iso_c_binding
23 procedure(absint), pointer :: p ! { dg-error "Non-polymorphic passed-object dummy argument" }
27 class(t1) :: c ! { dg-error "must be allocatable or pointer" }
31 subroutine absint(arg)
39 class(t6), allocatable :: foo ! { dg-error "must have the POINTER attribute" }
43 class(t1) :: o1 ! { dg-error "must be dummy, allocatable or pointer" }
45 class(t2), pointer :: o2 ! { dg-error "is not extensible" }
46 class(t3), pointer :: o3 ! { dg-error "is not extensible" }