a0e701d8a2
gcc/ * openacc.h (enum acc_device_t): Reformat. Ensure layout compatibility. (enum acc_async_t): Reformat. (acc_on_device): Declare compatible with builtin and provide C++ wrapper. * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New. gcc/testsuite/ * c-c++-common/goacc/acc_on_device-2-off.c: Delete. * c-c++-common/goacc/acc_on_device-2.c: Delete. From-SVN: r229562
12 lines
201 B
C
12 lines
201 B
C
/* { dg-do compile } */
|
|
/* { dg-additional-options "-O2" } */
|
|
|
|
#include <openacc.h>
|
|
|
|
int Foo (acc_device_t x)
|
|
{
|
|
return acc_on_device (x);
|
|
}
|
|
|
|
/* { dg-final { scan-assembler-not "acc_on_device" } } */
|