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

#include <stdlib.h>
#include <openacc.h>

int
main (int argc, char **argv)
{
  if (acc_get_num_devices (acc_device_none) != 0)
    abort ();

  if (acc_get_num_devices (acc_device_host) == 0)
    abort ();

  return 0;
}

/* { dg-output "" } */