1 /* Expect error message when shutting down a device that has never been
2 initialized. */
3 /* { dg-do run } */
4
5 #include <stdio.h>
6 #include <openacc.h>
7
8 int
9 main (int argc, char **argv)
10 {
11 fprintf (stderr, "CheCKpOInT\n");
12 acc_shutdown (acc_device_default);
13
14 return 0;
15 }
16
17 /* { dg-output "CheCKpOInT(\n|\r\n|\r).*" } */
18 /* { dg-output "no device initialized" } */
19 /* { dg-shouldfail "" } */