2 ! { dg-options "-std=f95" }
4 ! Test the implementation of inquiry part references (PR40196):
5 ! Check the standards are correctly adhered to.
7 ! Contributed by Tobias Burnus <burnus@gcc.gnu.org>
13 a
%len
= 2 ! { dg-error "Fortran 2003: LEN part_ref" }
14 i
= a
%kind
! { dg-error "Fortran 2003: KIND part_ref" }
15 print *, z
%re
! { dg-error "Fortran 2008: RE or IM part_ref" }
16 print *, z
%im
! { dg-error "Fortran 2008: RE or IM part_ref" }