libgomp/testsuite/libgomp.oacc-c-c++-common/lib-1.c
raw| 1 | /* { dg-do run } */ |
| 2 | |
| 3 | #include <stdio.h> |
| 4 | #include <openacc.h> |
| 5 | |
| 6 | int |
| 7 | main (int argc, char **argv) |
| 8 | { |
| 9 | acc_init (acc_device_default); |
| 10 | fprintf (stderr, "CheCKpOInT\n"); |
| 11 | acc_init (acc_device_default); |
| 12 | |
| 13 | return 0; |
| 14 | } |
| 15 | |
| 16 | /* { dg-output "CheCKpOInT(\n|\r\n|\r).*" } */ |
| 17 | /* { dg-output "device already active" } */ |
| 18 | /* { dg-shouldfail "" } */ |