Set num_threads to 50 on 32-bit hppa in two libgomp loop tests
[official-gcc.git] / libgomp / testsuite / libgomp.oacc-c-c++-common / acc-on-device-2.c
blobbfcb67d58b60a0e5282694b5c0ab88536dc273ea
1 /* Test the acc_on_device library function. */
2 /* { dg-additional-options "-fno-builtin-acc_on_device" } */
4 #include <openacc.h>
6 int main ()
8 int dev;
10 #pragma acc parallel copyout (dev)
12 dev = acc_on_device (acc_device_not_host);
15 int expect = 1;
17 #if ACC_DEVICE_TYPE_host
18 expect = 0;
19 #endif
21 return dev != expect;