re PR fortran/78741 (ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1534)
[official-gcc.git] / gcc / testsuite / gfortran.dg / asynchronous_3.f03
blobdfc5e6ea904cc8a8fa0bfe106353258fc6b01c51
1 ! { dg-do compile }
3 ! PR fortran/44457 - no array-subscript actual argument
4 !                    for an asynchronous dummy
7   integer :: a(10), sect(3)
8   sect = [1,2,3]
9   call f(a(sect))    ! { dg-error "incompatible" }
10   call f(a(::2))
11 contains
12   subroutine f(x)
13     integer, asynchronous :: x(:)
14   end subroutine f
15 end