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

#include <openacc.h>

int
main (int argc, char **argv)
{
  acc_init (acc_device_host);

  acc_shutdown (acc_device_not_host);

  return 0;
}

/* { dg-output "device \[0-9\]+\\\(\[0-9\]+\\\) is initialized" } */
/* { dg-shouldfail "" } */