Retro68/gcc/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-7.c
2015-08-28 17:33:40 +02:00

19 lines
266 B
C

/* { 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 "" } */