CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
58 lines
1.9 KiB
Fortran
58 lines
1.9 KiB
Fortran
! RUN: %python %S/test_errors.py %s %flang_fc1
|
|
! Check for semantic errors in get_team(), as defined in
|
|
! section 16.9.85 of the Fortran 2018 standard
|
|
|
|
program get_team_test
|
|
use iso_fortran_env, only: team_type, initial_team, current_team, parent_team
|
|
implicit none
|
|
|
|
integer n, array(1), coarray[*]
|
|
type(team_type) :: result_team
|
|
logical wrong_result_type, non_integer
|
|
|
|
result_team = team_type()
|
|
|
|
!___ standard-conforming statement with no optional arguments present ___
|
|
result_team = get_team()
|
|
|
|
!___ standard-conforming statements with optional level argument present ___
|
|
result_team = get_team(-1)
|
|
result_team = get_team(-2)
|
|
result_team = get_team(-3)
|
|
result_team = get_team(initial_team)
|
|
result_team = get_team(current_team)
|
|
result_team = get_team(parent_team)
|
|
result_team = get_team(n)
|
|
result_team = get_team(array(1))
|
|
result_team = get_team(array(n))
|
|
result_team = get_team(coarray[1])
|
|
result_team = get_team(level=initial_team)
|
|
result_team = get_team(level=n)
|
|
|
|
!___ non-conforming statements ___
|
|
!ERROR: 'level=' argument has unacceptable rank 1
|
|
result_team = get_team(array)
|
|
|
|
!ERROR: Actual argument for 'level=' has bad type 'LOGICAL(4)'
|
|
result_team = get_team(non_integer)
|
|
|
|
!ERROR: Actual argument for 'level=' has bad type 'REAL(4)'
|
|
result_team = get_team(3.4)
|
|
|
|
!ERROR: too many actual arguments for intrinsic 'get_team'
|
|
result_team = get_team(current_team, parent_team)
|
|
|
|
!ERROR: Actual argument for 'level=' has bad type 'REAL(4)'
|
|
result_team = get_team(level=3.4)
|
|
|
|
!ERROR: unknown keyword argument to intrinsic 'get_team'
|
|
result_team = get_team(levels=initial_team)
|
|
|
|
!ERROR: repeated keyword argument to intrinsic 'get_team'
|
|
result_team = get_team(level=initial_team, level=parent_team)
|
|
|
|
!ERROR: No intrinsic or user-defined ASSIGNMENT(=) matches operand types LOGICAL(4) and TYPE(team_type)
|
|
wrong_result_type = get_team()
|
|
|
|
end program get_team_test
|