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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 693 jeremybenn
// PR tree-optimization/30558
2
// { dg-do compile }
3
// { dg-options "-fopenmp" }
4
 
5
template  struct F
6
{
7
  ~F ();
8
  F (T);
9
  const T &operator[] (unsigned i) const;
10
};
11
 
12
template  F foo (const F &x)
13
{
14
  return F (x[1]);
15
}
16
 
17
struct G
18
{
19
  G () { bar (2); }
20
  F &operator () (F x);
21
  void bar (int);
22
};
23
 
24
int
25
main ()
26
{
27
  try
28
  {
29
    G g;
30
#pragma omp parallel for
31
    for (int i = 0; i < 10; ++i)
32
      {
33
        F j (i);
34
        F f = g (j);
35
        F h = foo (f);
36
      }
37
  }
38
  catch (int &e)
39
  {
40
  }
41
}

powered by: WebSVN 2.1.0

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