blob: 872f0c1de5c1e866d77e32f06684415292d00cb2 [file] [log] [blame]
/* { dg-skip-if "" { *-*-* } { "*" } { "-DACC_MEM_SHARED=0" } } */
#include <openacc.h>
int foo[16];
#pragma acc declare device_resident(foo)
int
main (int argc, char *argv[])
{
acc_init (acc_device_default);
acc_unmap_data ((void *) foo);
/* { dg-output "libgomp: cannot unmap target block" } */
return 0;
}
/* { dg-shouldfail "" } */