aboutsummaryrefslogtreecommitdiff
path: root/libgomp/testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c
blob: 05f58a4bddf9489cfaf5d323be98c9be734b910f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { 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;
}