fortran: Factor the evaluation of MINLOC/MAXLOC's BACK argument
[official-gcc.git] / libgomp / testsuite / libgomp.c / target-53.c
blob866e8961af192ff5ad0b067a4d2e5cdb6087e953
1 /* { dg-do run } */
2 /* { dg-set-target-env-var OMP_TARGET_OFFLOAD "disabled" } */
3 /* { dg-set-target-env-var OMP_DISPLAY_ENV "true" } */
5 /* { dg-output ".*OMP_DEFAULT_DEVICE = '\[0-9\]+'.*OMP_TARGET_OFFLOAD = 'DISABLED'.*" } */
7 #include <omp.h>
9 int
10 main ()
12 int x;
13 #pragma omp target map(tofrom:x)
14 x = 5 + omp_is_initial_device ();
16 if (x != 5+1)
17 __builtin_abort ();
19 if (omp_get_default_device() != omp_get_initial_device())
20 __builtin_abort ();
21 return 0;