llvm-project/flang/test/Semantics/form_team01a.f90
Peter Klausler 3f04fb42aa
[flang] Complete semantic checks for FORM TEAM (#131022)
Add remaining checking for the FORM TEAM statement, complete and enable
a test.
2025-03-19 11:59:59 -07:00

18 lines
543 B
Fortran

! RUN: %python %S/test_errors.py %s %flang_fc1
! Check for parsing errors in form team statements
! This subtest contains syntactic tests that prevent the main tests from being emitted.
subroutine test
use, intrinsic :: iso_fortran_env, only: team_type
type(team_type) :: team
integer :: team_number
! Syntactically invalid invocations.
!ERROR: expected '('
FORM TEAM (team_number, 0)
!ERROR: expected '('
FORM TEAM (team_number, team, STAT=0)
!ERROR: expected '('
FORM TEAM (team_number, team, ERRMSG='')
end subroutine