AVR: Assert minimal required bit width of section_common::flags.
[gcc.git] / libgomp / testsuite / libgomp.oacc-c-c++-common / if-self-1.c
blobf77edda83e32e6c6f2b75802a9b643c399b8439f
1 /* Test 'if' and 'self' clause appearing together. */
3 #include <openacc.h>
5 static int test(float i, long double s)
7 int ret;
8 #pragma acc serial copyout(ret) if(i) self(s)
9 /* { dg-bogus {using 'vector_length \(32\)', ignoring 1} {} { xfail openacc_nvidia_accel_selected } .-1 } */
11 ret = acc_on_device(acc_device_host);
13 return ret;
16 int main()
18 if (!test(0, 0))
19 __builtin_abort();
21 if (!test(0, 1))
22 __builtin_abort();
24 #if ACC_MEM_SHARED
25 if (!test(1, 0))
26 __builtin_abort();
27 #else
28 if (test(1, 0))
29 __builtin_abort();
30 #endif
32 if (!test(1, 1))
33 __builtin_abort();
35 return 0;