| 1 |
/* { dg-do run } */ |
| 2 |
|
| 3 |
#include <stdio.h> |
| 4 |
#include <stdlib.h> |
| 5 |
#include <openacc.h> |
| 6 |
|
| 7 |
int |
| 8 |
main (int argc, char **argv) |
| 9 |
{ |
| 10 |
const int N = 256; |
| 11 |
unsigned char *h; |
| 12 |
void *d; |
| 13 |
|
| 14 |
h = (unsigned char *) malloc (N); |
| 15 |
|
| 16 |
fprintf (stderr, "CheCKpOInT\n"); |
| 17 |
d = acc_present_or_create (0, N); |
| 18 |
if (!d) |
| 19 |
abort (); |
| 20 |
|
| 21 |
acc_delete (h, N); |
| 22 |
|
| 23 |
free (h); |
| 24 |
|
| 25 |
return 0; |
| 26 |
} |
| 27 |
|
| 28 |
/* { dg-output "CheCKpOInT(\n|\r\n|\r).*" } */ |
| 29 |
/* { dg-output "\\\[\[^\n\r]*,\\\+256\\\] is a bad range" } */ |
| 30 |
/* { dg-shouldfail "" } */ |