Retro68/gcc/libgomp/testsuite/libgomp.oacc-c-c++-common/data-already-1.c

20 lines
323 B
C
Raw Normal View History

2015-08-28 15:33:40 +00:00
/* { dg-skip-if "" { *-*-* } { "*" } { "-DACC_MEM_SHARED=0" } } */
#include <openacc.h>
int
main (int argc, char *argv[])
{
int i;
acc_copyin (&i, sizeof i);
#pragma acc data copy (i)
++i;
return 0;
}
/* { dg-shouldfail "" }
{ dg-output "Trying to map into device .* object when .* is already mapped" } */