mirror of
https://github.com/autc04/Retro68.git
synced 2025-02-20 02:29:11 +00:00
18 lines
346 B
C
18 lines
346 B
C
/* { 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 "" } */
|