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

Subversion Repositories openrisc

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

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/33890
2
// { dg-do compile }
3
// { dg-options "-fopenmp" }
4
 
5
struct A
6
{
7
  int x;
8
  A () : x (0) {}
9
  int & getX ();
10
};
11
 
12
template  void
13
foo ()
14
{
15
  A a;
16
 
17
#pragma omp for
18
  for (int i = a.getX (); i < 10; ++i)
19
    ;
20
#pragma omp for
21
  for (int i = 0; i < a.getX (); ++i)
22
    ;
23
  a.x = 1;
24
#pragma omp for
25
  for (int i = 0; i < 10; i += a.getX ())
26
    ;
27
}
28
 
29
void
30
bar ()
31
{
32
  foo <0> ();
33
  foo <1> ();
34
}

powered by: WebSVN 2.1.0

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