summaryrefslogtreecommitdiff
path: root/libgomp/testsuite/libgomp.c++/bdv_module2_impl.C
blob: 8287ae5f3b84f7bdca243f85ff5cf3afb135400d (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
// { dg-skip-if "" { *-*-* } }
// Built with bdv_module2.C

module bdv_module2;

#if _OPENMP
#pragma omp begin declare variant match(construct={teams})
int
test ()
{
  return -1;
}
#pragma omp end declare variant
#endif

void
doit ()
{
  if (test () != 0)
    __builtin_abort ();
  #pragma omp teams
  {
    if (test () != -1)
      __builtin_abort ();
  }
}