1 /* { dg-set-target-env-var OMP_TARGET_OFFLOAD "mandatory" } */
14 #pragma omp declare target enter (v, foo)
19 /* OMP_TARGET_OFFLOAD=mandatory shouldn't fail for host fallback
20 if it is because the program explicitly asked for the host
21 fallback through if(false) or omp_get_initial_device () or
22 omp_initial_device as the device. */
23 #pragma omp target if (v)
25 #pragma omp target device (omp_initial_device)
27 #pragma omp target device (omp_get_initial_device ())
29 omp_set_default_device (omp_get_initial_device ());