gcc/testsuite/gfortran.dg/coarray/coindexed_4.f08
raw| 1 | !{ dg-do compile } |
| 2 | !{ dg-additional-options "-std=f2008" } |
| 3 | |
| 4 | ! TEAM_NUMBER= in coindices has been introduced in F2015 standard, but that is not |
| 5 | ! dedicatedly supported by GFortran. Therefore check for F2018. |
| 6 | program pr98903 |
| 7 | integer :: a[*] |
| 8 | |
| 9 | a = 42 |
| 10 | |
| 11 | a = a[1, team_number=-1] ! { dg-error "Fortran 2018: TEAM_NUMBER= not supported at" } |
| 12 | end program pr98903 |
| 13 |