Debian Codegraph @

gcc/testsuite/c-c++-common/gomp/target-is-device-ptr-2.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-fopenmp -fdump-tree-gimple" } */
3
4 void
5 foo ()
6 {
7 int *x, *y;
8
9 #pragma omp target data map(x, y) use_device_ptr(x, y)
10 #pragma omp target is_device_ptr(x, y)
11 {
12 *x = 42;
13 }
14 }
15
16 /* { dg-final { scan-tree-dump "is_device_ptr\\(x\\)" "gimple" } } */
17 /* { dg-final { scan-tree-dump-not "is_device_ptr\\(y\\)" "gimple" } } */