[to-be-committed] [RISC-V] Use Zbkb for general 64 bit constants when profitable
[official-gcc.git] / gcc / testsuite / gfortran.dg / coarray_33.f90
blob9bd87f9673405dd0cb66d360b61c5a5d894eec9b
1 ! { dg-do compile }
2 ! { dg-options "-fcoarray=lib" }
3 type t
4 integer :: x
5 end type t
7 class(t), allocatable :: a[:]
8 allocate(t :: a[*])
9 a%x = this_image()
11 call foo(a[i]) ! { dg-error "Coindexed polymorphic actual argument at .1. is passed polymorphic dummy argument" }
12 contains
13 subroutine foo(y)
14 class(t) :: y
15 print *, y%x
16 end subroutine foo
17 end