2 ! Tests a number of error messages relating to derived type objects
3 ! in common blocks. Originally due to PR 33198
10 type(a
) :: t
! { dg-error "Derived type variable .t. in COMMON at ... may not have default initializer" }
19 type(a
) :: t
! { dg-error "Derived type variable .t. in COMMON at ... has neither the SEQUENCE nor the BIND.C. attribute" }
26 integer, allocatable
:: i(:)
29 type(a
) :: t
! { dg-error "Derived type variable .t. in COMMON at ... has an ultimate component that is allocatable" }
34 parameter(x
=0.) ! { dg-error "COMMON block .x. at ... is used as PARAMETER at ..." }
35 common /x
/ i
! { dg-error "COMMON block .x. at ... is used as PARAMETER at ..." }
37 common /sin
/ j
! { dg-error "COMMON block .sin. at ... is also an intrinsic procedure" }