| 1 |
/* { dg-do run { target offload_device_nonshared_as } } */ |
| 2 |
|
| 3 |
struct S |
| 4 |
{ |
| 5 |
int a, b, c; |
| 6 |
}; |
| 7 |
typedef struct S S; |
| 8 |
|
| 9 |
int main (void) |
| 10 |
{ |
| 11 |
S s; |
| 12 |
#pragma omp target data map (alloc: s.a, s.c) |
| 13 |
{ |
| 14 |
#pragma omp target enter data map (alloc: s.b) |
| 15 |
} |
| 16 |
|
| 17 |
return 0; |
| 18 |
} |
| 19 |
/* { dg-output "Trying to map into device \\\[\[0-9a-fA-FxX\]+..\[0-9a-fA-FxX\]+\\\) structure element when other mapped elements from the same structure weren't mapped together with it" } */ |
| 20 |
/* { dg-shouldfail "" } */ |