Debian Codegraph @

libgomp/testsuite/libgomp.c-c++-common/unary-ptr-1.c

raw
1 #include <assert.h>
2
3 int main (int argc, char *argv[])
4 {
5 int y = 0;
6 int *x = &y;
7
8 #pragma omp target map(*x)
9 {
10 (*x)++;
11 }
12
13 assert (y == 1);
14
15 return 0;
16 }