OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [libgomp/] [testsuite/] [libgomp.c++/] [loop-7.C] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 273 jeremybenn
// PR c++/24502
2
// { dg-do run }
3
 
4
extern "C" void abort ();
5
 
6
template  T
7
foo (T r)
8
{
9
  T i;
10
#pragma omp for
11
  for (i = 0; i < 10; i++)
12
    r += i;
13
  return r;
14
}
15
 
16
int
17
main ()
18
{
19
  if (foo (0) != 10 * 9 / 2 || foo (2L) != 10L * 9 / 2 + 2)
20
    abort ();
21
  return 0;
22
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.