blob: cc7dac8bd0fcf8f6040362fe67ed579ef7c90425 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* { dg-additional-options "-fdump-tree-omplower" } */
/* PR fortran/108545 */
/* { dg-final { scan-tree-dump "#pragma omp target enter data map\\(struct:my_struct \\\[len: 1\\\]\\) map\\(to:my_struct.u \\\[len: \[0-9\]+\\\]\\)" "omplower" } } */
/* { dg-final { scan-tree-dump "#pragma omp target enter data map\\(to:my_struct3 \\\[len: \[0-9\]+\\\]\\)" "omplower" } } */
volatile struct t {
struct t2 { int *a; int c; } u;
int b;
} my_struct;
volatile struct t3 { int *a; int c; } my_struct3;
void f()
{
#pragma omp target enter data map(to:my_struct.u) map(to:my_struct.u.a)
#pragma omp target enter data map(to:my_struct3) map(to:my_struct3.a)
}
|