2 ! Test the fix for PR25097, in which subobjects of the optional dummy argument
3 ! could appear as argument A of the PRESENT intrinsic.
5 ! Contributed by Joost VandeVondele <jv244@cam.ac.uk>
13 TYPE(T1
), OPTIONAL
:: D1(4)
14 write(6,*) PRESENT(D1
%I
) ! { dg-error "must not be a subobject" }
15 write(6,*) PRESENT(D1(1)) ! { dg-error "must not be a subobject" }
16 write(6,*) PRESENT(D1
)
20 ! { dg-final { cleanup-modules "M1" } }