Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gfortran.dg/coarray_9.f90 @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 ! { dg-do compile } |
2 ! | |
3 ! PR fortran/18918 | |
4 ! | |
5 ! Check for error if no -fcoarray= option has been given | |
6 ! | |
7 | |
8 integer :: a | |
9 integer :: b[*] ! { dg-error "Coarrays disabled" } | |
10 | |
11 error stop "Error" | |
12 sync all ! "Coarrays disabled" (but error above is fatal) | |
13 | |
14 critical ! "Coarrays disabled" (but error above is fatal) | |
15 | |
16 end critical ! "Expecting END PROGRAM statement" (but error above is fatal) | |
17 | |
18 end | |
19 ! { dg-excess-errors "compilation terminated" } |