[OpenMP] fix test adding mapping of shared variables

GitOrigin-RevId: 091e8daa24de6c348674f7507c0cf9b0f9395607
diff --git a/runtime/test/teams/kmp_num_teams.c b/runtime/test/teams/kmp_num_teams.c
index 8012f1f..2027b5e 100644
--- a/runtime/test/teams/kmp_num_teams.c
+++ b/runtime/test/teams/kmp_num_teams.c
@@ -33,7 +33,7 @@
   __kmpc_push_num_teams_51(NULL, gtid, num_teams_lb, num_teams_ub,
                            thread_limit);
 
-#pragma omp target teams
+#pragma omp target teams map(tofrom: a) map(from: nteams, nthreads)
   {
     int priv_nteams;
     int team_num = omp_get_team_num();