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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [gomp/] [pr48632.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/48632
2
// { dg-do compile }
3
// { dg-options "-fopenmp" }
4
 
5
template
6
void
7
foo (T *x, T *y, unsigned z)
8
{
9
#pragma omp parallel for
10
  for (T *p = x; p < y; p += z)
11
    ;
12
#pragma omp parallel for
13
  for (T *p = y; p > x; p -= z)
14
    ;
15
}
16
 
17
int
18
main ()
19
{
20
  char buf[10];
21
  foo (&buf[0], &buf[9], 1);
22
}

powered by: WebSVN 2.1.0

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