blob: 3931c5aba25ae71d7e0c7a027c8af39ad5734a1a [file] [log] [blame]
int foo[16];
#pragma omp declare target (foo)
__attribute__((used)) void bar (void)
#pragma omp target parallel for
for (int i = 0; i < 16; i++)
foo[i] = i;
main (int argc, char *argv[])
int *foo_copy = foo;
/* Try to trigger the unmapping of a REFCOUNT_INFINITY target block. This
does nothing at the time of writing. */
#pragma omp target exit data map(delete: foo_copy[0:16])
return 0;