libgomp/testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c
raw| 1 | /* { dg-skip-if "" { *-*-* } { "*" } { "-DACC_MEM_SHARED=0" } } */ |
| 2 | |
| 3 | #include <openacc.h> |
| 4 | |
| 5 | int foo[16]; |
| 6 | #pragma acc declare device_resident(foo) |
| 7 | |
| 8 | int |
| 9 | main (int argc, char *argv[]) |
| 10 | { |
| 11 | acc_init (acc_device_default); |
| 12 | acc_unmap_data ((void *) foo); |
| 13 | /* { dg-output "libgomp: refusing to unmap block \\\[\[0-9a-fA-FxX\]+,\\\+64\\\] that has not been mapped by 'acc_map_data'" } */ |
| 14 | return 0; |
| 15 | } |
| 16 | |
| 17 | /* { dg-shouldfail "" } */ |