c: Fix up pointer types to may_alias structures [PR114493]
[official-gcc.git] / gcc / testsuite / gfortran.dg / pr93580.f90
blob4feaa1129142f121234fa6ad8168509b9ea660cf
1 ! { dg-do compile }
2 ! PR fortran/93580
4 program p
5 integer, parameter :: n = 4
6 complex(n%re) :: x ! { dg-error "The RE or IM part_ref at" }
7 complex(n%im) :: y ! { dg-error "The RE or IM part_ref at" }
8 complex(n%len) :: z ! { dg-error "The LEN part_ref at" }
9 character(n%im) :: a ! { dg-error "The RE or IM part_ref at" }
10 character(n%re) :: b ! { dg-error "The RE or IM part_ref at" }
11 character(n%len) :: c ! { dg-error "The LEN part_ref at" }
12 end