Retro68/gcc/libgomp/testsuite/libgomp.oacc-c-c++-common/pr70373.c

21 lines
186 B
C
Raw Normal View History

2017-04-10 11:32:00 +00:00
#define N 32
int
foo (unsigned int sum)
{
#pragma acc parallel reduction (+:sum)
{
sum;
}
return sum;
}
int
main (void)
{
unsigned int sum = 0;
foo (sum);
return 0;
}