blob: 5e798739a5c30b9430713461bf2d854af56ea1c5 (
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
|
// { dg-skip-if "" { *-*-* } }
// Built with bdv_module3.C
module bdv_module3;
#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 ();
}
#pragma omp parallel if(0)
{
if (test () != 1)
__builtin_abort ();
}
}
|