| !{ dg-additional-options "-fcoarray=lib" } |
| ! Tests change team syntax |
| use iso_fortran_env, only : team_type |
| integer :: new_team, istat |
| new_team = mod(this_image(),2)+1 |
| form team (new_team,team) |
| end team (stat=err) ! { dg-error "must be a scalar INTEGER" } |
| end team (stat=istat, stat=istat) ! { dg-error "Duplicate STAT" } |
| end team (stat=istat, errmsg=istat) ! { dg-error "must be a scalar CHARACTER variable" } |
| end team (stat=istat, errmsg=err, errmsg=err) ! { dg-error "Duplicate ERRMSG" } |
| end team (stat=istat) t ! ok |
| end team ! { dg-error "Expected block name of 't2' in END TEAM" } |
| end team t2 ! close the team correctly to catch other errors |