summaryrefslogtreecommitdiff
path: root/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-2.c
blob: 353cd1c4d3198f4b02155c7501e88fec4e43e69f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-do run } */

#include <stdio.h>
#include <openacc.h>

int
main (int argc, char **argv)
{
  acc_init (acc_device_default);
  acc_shutdown (acc_device_default);
  fprintf (stderr, "CheCKpOInT\n");
  acc_shutdown (acc_device_default);

  return 0;
}

/* { dg-output "CheCKpOInT(\n|\r\n|\r).*" } */
/* { dg-output "no device initialized" } */
/* { dg-shouldfail "" } */