coarray_41.f90: Add "-latomic" option if libatomic_available.
[official-gcc.git] / gcc / testsuite / gfortran.dg / elemental_args_check_6.f90
blobf5ae59a48a0dd052e1013817307554f928e02fc0
1 ! { dg-do compile }
2 ! { dg-options "-fcoarray=single" }
4 ! PR fortran/52013
6 type t
7 end type t
8 contains
9 elemental subroutine f(x)
10 class(t), intent(inout) :: x ! Valid
11 end subroutine
12 elemental subroutine g(y) ! { dg-error "Coarray dummy argument 'y' at .1. to elemental procedure" }
13 class(t), intent(inout) :: y[*]
14 end subroutine
15 end