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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [gomp/] [pr35099.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 middle-end/35099
2
// { dg-do compile }
3
// { dg-options "-O2 -fopenmp" }
4
 
5
struct A
6
{
7
  ~A () throw ();
8
  void foo ();
9
};
10
 
11
struct B
12
{
13
  B () { A ().foo (); }
14
};
15
 
16
void
17
bar ()
18
{
19
#pragma omp parallel
20
  {
21
  #pragma omp single
22
    B ();
23
  #pragma omp for
24
    for (int i = 0; i < 2; ++i)
25
      B ();
26
  }
27
}
28
 
29
void
30
baz ()
31
{
32
#pragma omp parallel
33
  {
34
  #pragma omp single
35
    B ();
36
  #pragma omp single
37
    B ();
38
  }
39
}

powered by: WebSVN 2.1.0

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