☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
libgomp
/
testsuite
/
libgomp.c-c++-common
/
unary-ptr-1.c
☽
☼
libgomp/testsuite/libgomp.c-c++-common/unary-ptr-1.c
code
plain
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
}