xfail scan-tree-dump-not throw in g++.dg/pr99966.C on hppa*64*-*-*
[official-gcc.git] / libgomp / testsuite / libgomp.c-c++-common / omp-display-env-2.c
blobe1beef4154527e257f20819c62c13d778dcebd98
1 /* { dg-do run } */
2 /* { dg-set-target-env-var OMP_NUM_TEAMS "42" } */
4 /* This test checks if omp_display_env outputs the initial ICV values although
5 the value was updated. */
7 #include <omp.h>
8 #include <stdlib.h>
10 int
11 main ()
13 omp_display_env (1);
14 omp_set_num_teams (24);
15 if (omp_get_max_teams () != 24)
16 abort ();
17 omp_display_env (1);
19 return 0;
22 /* { dg-output ".*\\\[host] OMP_NUM_TEAMS = '42'.*\\\[host] OMP_NUM_TEAMS = '42'" { target native } } */