URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgomp/] [testsuite/] [libgomp.c++/] [pr49043.C] - Rev 861
Go to most recent revision | Compare with Previous | Blame | View Log
// PR c++/49043
// { dg-options "-std=c++0x" }
// { dg-do run }
extern "C" void abort ();
int
main ()
{
int r = 0;
#pragma omp parallel for reduction (+:r)
for (int a = 0; a < 10; ++a)
{
auto func = [=] () { return a; };
r += func ();
}
if (r != 45)
abort ();
}
Go to most recent revision | Compare with Previous | Blame | View Log