re PR fortran/83548 (Compilation Error using logical function in parameter)
[official-gcc.git] / gcc / testsuite / gfortran.dg / coarray_9.f90
blob0a4dbeccc506e5e4c5821b8ca789f4e06700fc85
1 ! { dg-do compile }
3 ! PR fortran/18918
5 ! Check for error if no -fcoarray= option has been given
8 integer :: a
9 integer :: b[*] ! { dg-error "Coarrays disabled" }
11 error stop "Error"
12 sync all ! "Coarrays disabled" (but error above is fatal)
14 critical ! "Coarrays disabled" (but error above is fatal)
16 end critical ! "Expecting END PROGRAM statement" (but error above is fatal)
18 end
19 ! { dg-excess-errors "compilation terminated" }