AVR: Assert minimal required bit width of section_common::flags.
[gcc.git] / libgomp / testsuite / libgomp.oacc-c-c++-common / pr92726-1.c
blobfb69adf4c400ce2fc2d5f22c7954e6b1d9277041
1 /* Verify that 'acc_delete' etc. with a 'NULL' address is a no-op. */
3 #include <assert.h>
4 #include <stdlib.h>
5 #include <openacc.h>
7 int
8 main (int argc, char **argv)
10 const int N = 256;
12 unsigned char *a = (unsigned char *) malloc (N);
13 assert (a);
15 void *a_d = acc_create (a, N);
16 assert (a_d);
18 acc_delete (NULL, N);
19 assert (acc_is_present (a, N));
20 //TODO similar for others.
22 acc_delete (a, N);
23 free (a);
25 return 0;