Retro68/gcc/libgomp/testsuite/libgomp.oacc-c-c++-common/enter-data.c
Wolfgang Thaller 6fbf4226da gcc-9.1
2019-06-20 20:10:10 +02:00

24 lines
454 B
C

/* This test verifies that the present data clauses to acc enter data
don't cause duplicate mapping failures at runtime. */
/* { dg-do run } */
#include <stdlib.h>
int
main (void)
{
int a;
#pragma acc enter data copyin (a)
#pragma acc enter data pcopyin (a)
#pragma acc enter data pcreate (a)
#pragma acc exit data delete (a)
#pragma acc enter data create (a)
#pragma acc enter data pcreate (a)
#pragma acc exit data delete (a)
return 0;
}