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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 693 jeremybenn
// PR target/35364
2
// { dg-do compile }
3
// { dg-options "-O2 -fopenmp" }
4
 
5
template 
6
struct E
7
{
8
  E ();
9
  ~E ();
10
};
11
 
12
template 
13
struct C
14
{
15
  C (const U &y) : u (y) {}
16
  ~C () {}
17
  const U &u;
18
};
19
 
20
template  >
21
struct B : public C
22
{
23
  B (int x, const T &z = T (), const U &y = U ()) : C (y) {}
24
  ~B () {}
25
};
26
 
27
void
28
foo ()
29
{
30
#pragma omp parallel
31
  {
32
    B x (1);
33
  }
34
#pragma omp for
35
  for (int i = 0; i < 10; i++)
36
    {
37
      B x (i);
38
    }
39
#pragma omp sections
40
  {
41
#pragma omp section
42
    {
43
      B x (6);
44
    }
45
  }
46
#pragma omp single
47
  {
48
    B x (16);
49
  }
50
}

powered by: WebSVN 2.1.0

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