20 lines
374 B
C
Raw Normal View History

2015-08-28 17:33:40 +02:00
/* { dg-do run } */
2017-04-10 13:32:00 +02:00
#include <stdio.h>
2015-08-28 17:33:40 +02:00
#include <openacc.h>
int
main (int argc, char **argv)
{
2017-04-10 13:32:00 +02:00
acc_init (acc_device_default);
acc_shutdown (acc_device_default);
fprintf (stderr, "CheCKpOInT\n");
acc_shutdown (acc_device_default);
2015-08-28 17:33:40 +02:00
return 0;
}
2017-04-10 13:32:00 +02:00
/* { dg-output "CheCKpOInT(\n|\r\n|\r).*" } */
/* { dg-output "no device initialized" } */
/* { dg-shouldfail "" } */