doc: Drop GCC 2.6 ABI change note for H8/h8300-hms
[official-gcc.git] / libgomp / testsuite / libgomp.fortran / teams-1.f90
blob9969fe48884088c132bf3910826e10b18a3ec5d6
1 program main
2 use omp_lib
3 implicit none (type, external)
4 integer :: i
6 !$omp teams num_teams (5)
7 if (omp_get_num_teams () /= 5) stop 1
8 !$omp distribute dist_schedule(static,1)
9 do i = 0, 4
10 if (omp_get_team_num () /= i) stop 2
11 end do
12 !$omp end teams
14 !$omp teams num_teams (7 : 9)
15 if (omp_get_num_teams () < 7 .or. omp_get_num_teams () > 9) &
16 stop 3
17 !$omp distribute dist_schedule(static,1)
18 do i = 0, omp_get_num_teams () - 1
19 if (omp_get_team_num () /= i) stop 4
20 end do
21 !$omp end teams
22 end program main