7 ! Contributed by Jared Ahern
14 INTEGER, POINTER :: j
=> NULL()
16 TYPE(foo
), SAVE, PROTECTED
:: a
17 TYPE(foo
), SAVE, PROTECTED
, POINTER :: b
18 INTEGER, SAVE, PROTECTED
:: i
= 5
19 INTEGER, SAVE, PROTECTED
, POINTER :: j
=> NULL()
30 TYPE(foo
), TARGET
:: c
36 i
= k
! { dg-error "is PROTECTED" }
37 j
=> k
! { dg-error "is PROTECTED" }
39 a
= c
! { dg-error "is PROTECTED" }
40 a
%i
= k
! { dg-error "is PROTECTED" }
41 a
%j
=> k
! { dg-error "is PROTECTED" }
43 b
=> c
! { dg-error "is PROTECTED" }