2 ! Tests fix for PR29115, in which an ICE would be produced by
3 ! non-pointer elements being supplied to the pointer components
4 ! in a derived type constructor.
6 ! Contributed by Paul Thomas <pault@gcc.gnu.org>
9 integer, pointer :: bart(:)
13 marge
= homer (duff_beer
) ! { dg-error "should be a POINTER or a TARGET" }
17 ! The following yield an ICE, see PR 34083
21 character(len
=1) :: singleByte
23 type (ByteType
) :: bytes(4)
26 bytes
= ByteType((/'H', 'i', '!', ' '/)) ! { dg-error "rank of the element in the derived type constructor" }