diff options
author | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-10-30 00:13:22 +0000 |
---|---|---|
committer | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-10-30 00:13:22 +0000 |
commit | da6fe89643c5c875bef68b86df671bce8e6afb2a (patch) | |
tree | dd2241361205d8674dc6b7d973e1d78df3ddc6d4 /libgomp/testsuite | |
parent | 30ff90f6019d3733a705f8a7348dccecb92ad362 (diff) | |
download | gcc-da6fe89643c5c875bef68b86df671bce8e6afb2a.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@229562 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgomp/testsuite')
-rw-r--r-- | libgomp/testsuite/libgomp.oacc-c-c++-common/acc-on-device.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/acc-on-device.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/acc-on-device.c new file mode 100644 index 00000000000..88c000e62f0 --- /dev/null +++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/acc-on-device.c @@ -0,0 +1,11 @@ +/* { 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" } } */ |