c: Fix up pointer types to may_alias structures [PR114493]
[official-gcc.git] / gcc / testsuite / gfortran.dg / coarray_31.f90
blob0da4d90ce14cf9215ccd12b01e1081d238e9c1a2
1 ! { dg-do compile }
2 ! { dg-options "-fdump-tree-original -fcoarray=single" }
4 ! PR fortran/57906
5 ! PR fortran/52052
7 type t
8 integer, allocatable :: x(:)[:]
9 class(*), allocatable :: z(:)[:]
10 class(*), allocatable :: d[:]
11 end type t
12 type t2
13 type(t) :: y
14 end type t2
15 type(t2) :: a, b
16 a = b
17 end
19 ! { dg-final { scan-tree-dump "a.y.x.data = D.\[0-9\]+.y.x.data;" "original" } }
20 ! { dg-final { scan-tree-dump "a.y.z._data.data = D.\[0-9\]+.y.z._data.data;" "original" } }
21 ! { dg-final { scan-tree-dump "a.y.d._data.data = D.\[0-9\]+.y.d._data.data;" "original" } }