diff --git a/libgomp/testsuite/libgomp.c/teams-5.c b/libgomp/testsuite/libgomp.c/teams-5.c new file mode 100644 index 00000000000..ad42e05825f --- /dev/null +++ b/libgomp/testsuite/libgomp.c/teams-5.c @@ -0,0 +1,17 @@ +#include +#include + +int +main () +{ + #pragma omp teams num_teams (2) + { + if (omp_get_num_teams () != 2) + abort (); + #pragma omp parallel if (0) + #pragma omp target + if (omp_get_num_teams () != 1 || omp_get_team_num () != 0) + abort (); + } + return 0; +}