aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/gomp/num-teams-1.c
blob: 50cad856cb3bc2ffa2efb1ea6db9ac27ded78a24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
int fn (int);

void
foo (void)
{
  #pragma omp teams num_teams (4 : 6)
  ;
  #pragma omp teams num_teams (7)
  ;
}

void
bar (void)
{
  #pragma omp target teams num_teams (5 : 19)
  ;
  #pragma omp target teams num_teams (21)
  ;
}

void
baz (void)
{
  #pragma omp teams num_teams (fn (1) : fn (2))
  ;
  #pragma omp teams num_teams (fn (3))
  ;
}

void
qux (void)
{
  #pragma omp target teams num_teams (fn (4) : fn (5))
  ;
  #pragma omp target teams num_teams (fn (6))
  ;
}

void
corge (void)
{
  #pragma omp target
  #pragma omp teams num_teams (fn (7) : fn (8))
  ;
  #pragma omp target
  #pragma omp teams num_teams (fn (9))
  ;
}