2017-02-20 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / coarray_20.f90
blob8005768fa8011437e2d8f3264834ca754292394c
1 ! { dg-do compile }
2 ! { dg-options "-fcoarray=single" }
4 ! Before a bogus error (argument not simply contiguous)
5 ! was printed instead of the rank mismatch
7 ! PR fortran/18918
9 integer :: A[*]
10 call bar(A) ! { dg-error "Rank mismatch in argument" }
11 contains
12 subroutine bar(x)
13 integer :: x(1)[*]
14 end subroutine bar
15 end