Update 'Q' constraint documentation.
[official-gcc.git] / libgomp / testsuite / libgomp.oacc-c-c++-common / lib-11.c
blob86cfeb68c5d0285424877fd52064d38d3af1aa93
1 /* Only nvptx plugin does the required error checking.
2 { dg-do run { target openacc_nvidia_accel_selected } } */
4 #include <stdio.h>
5 #include <stdlib.h>
6 #include <openacc.h>
7 #include <stdint.h>
9 int
10 main (int argc, char **argv)
12 const int N = 512;
13 void *d;
15 d = acc_malloc (N);
16 if (d == NULL)
17 abort ();
19 fprintf (stderr, "CheCKpOInT\n");
20 acc_free ((void *)((uintptr_t) d + (uintptr_t) (N >> 1)));
22 return 0;
25 /* { dg-output "CheCKpOInT(\n|\r\n|\r).*" } */
26 /* { dg-output "invalid device address" } */
27 /* { dg-shouldfail "" } */