lto: Remove random_seed from section name.
[official-gcc.git] / gcc / testsuite / gfortran.dg / coarray_args_1.f90
blob0a3cada90d2b0c9a5ffb01ec99df98f7ce0f78eb
1 ! { dg-do compile }
2 ! { dg-options "-fcoarray=single" }
4 ! Argument checking
6 implicit none
7 type t
8 integer :: i
9 integer,allocatable :: j
10 end type t
12 type(t), save :: x[*]
14 call sub1(x%i)
15 call sub1(x[1]%i) ! { dg-error "must be a coarray" }
16 contains
17 subroutine sub1(y)
18 integer :: y[*]
19 end subroutine sub1
20 end