| 1 |
#pragma omp requires unified_shared_memory,unified_address,reverse_offload |
| 2 |
void |
| 3 |
foo (void) |
| 4 |
{ |
| 5 |
#pragma omp target |
| 6 |
; |
| 7 |
} |
| 8 |
|
| 9 |
#pragma omp requires unified_shared_memory /* { dg-error "'unified_shared_memory' clause used lexically after first target construct or offloading API" } */ |
| 10 |
#pragma omp requires unified_address /* { dg-error "'unified_address' clause used lexically after first target construct or offloading API" } */ |
| 11 |
#pragma omp requires reverse_offload /* { dg-error "'reverse_offload' clause used lexically after first target construct or offloading API" } */ |
| 12 |
#pragma omp requires self_maps /* { dg-error "'self_maps' clause used lexically after first target construct or offloading API" } */ |