Retro68/gcc/libgomp/testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c
Wolfgang Thaller 6fbf4226da gcc-9.1
2019-06-20 20:10:10 +02:00

17 lines
222 B
C

/* { dg-xfail-run-if "PR88852" { openacc_host_selected } } */
int
main (void)
{
int x = 123;
#pragma acc parallel num_gangs(1) reduction (+: x)
{
x = 23;
}
if (x != 146)
__builtin_abort();
return 0;
}