blob: 31a2fa5e8cfe00ba51bb447c0325253f86680352 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* { dg-do run { target offload_device_nonshared_as } } */
struct S
{
int a, b, c;
};
typedef struct S S;
int main (void)
{
S s;
#pragma omp target data map (alloc: s.a, s.c)
{
#pragma omp target enter data map (alloc: s.b)
}
return 0;
}
/* { 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" } */
/* { dg-shouldfail "" } */
|