[flang] Accept polymorphic component element in storage_size
[llvm-project.git] / flang / test / Semantics / team_number01.f90
blobfc489cca463d98f84c88ee2d16e0f45d79ffd787
1 ! RUN: %python %S/test_errors.py %s %flang_fc1
2 ! Check for semantic errors in team_number() function calls
4 subroutine test
5 use, intrinsic :: iso_fortran_env, only: team_type
6 type(team_type) :: team
8 ! correct calls, should produce no errors
9 team = get_team()
10 print *, team_number()
11 print *, team_number(team)
12 print *, team_number(team=team)
14 ! call with too many arguments
15 !ERROR: too many actual arguments for intrinsic 'team_number'
16 print *, team_number(1, 3)
18 ! keyword argument with incorrect type
19 !ERROR: Actual argument for 'team=' has bad type 'REAL(4)'
20 print *, team_number(team=3.1415)
22 end subroutine