Drop Z from X + Z < Y + Z
[official-gcc.git] / libgomp / testsuite / libgomp.oacc-c-c++-common / zero_length_subarrays.c
blob8954551205b5ea89b1e2df0019655a61cbe16c9e
1 /* Exercise zero-length sub-arrays. */
3 const int n = 10;
5 void
6 subzero_present (int *a, int n)
8 #pragma acc data present (a[0:n])
10 #pragma acc data pcopy (a[0:n])
12 #pragma acc data pcopyin (a[0:n])
14 #pragma acc data pcopyout (a[0:n])
19 void
20 subzero (int *a, int n)
22 #pragma acc data create (a[0:n])
24 #pragma acc data copy (a[0:n])
26 #pragma acc data copyin (a[0:n])
28 #pragma acc data copyout (a[0:n])
32 int
33 main ()
35 int a[n];
37 #pragma acc data copy (a[0:n])
39 subzero_present (a, 0);
42 subzero (a, 0);
44 return 0;