2 ! Test the fixes for PR38917 and 38918, in which the NULL values caused errors.
4 ! Contributed by Dick Hendrickson <dick.hendrickson@gmail.com>
5 ! and Tobias Burnus <burnus@gcc.gnu.org>
10 INTEGER, POINTER :: PTR_S
12 TYPE (HAS_POINTER
) :: PTR_ARRAY(5)
14 DATA PTR_ARRAY(1)%PTR_S
/NULL()/
20 REAL, SAVE, POINTER :: PTR1
21 INTEGER, POINTER :: PTR2(:,:,:)
22 CHARACTER(LEN
=1), SAVE, POINTER :: PTR3(:)
30 ! Tobias pointed out that this would cause an ICE rather than an error.
32 integer, pointer :: ptr(:)
33 data ptr(1) /NULL()/ ! { dg-error "must be a full array" }