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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [gomp/] [pr27337-2.C] - Blame information for rev 825

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

Line No. Rev Author Line
1 149 jeremybenn
// PR middle-end/27337
2
// { dg-do compile }
3
 
4
struct S
5
{
6
  S ();
7
  ~S ();
8
  int i;
9
};
10
 
11
S
12
foo ()
13
{
14
  int i;
15
  S ret;
16
 
17
#pragma omp parallel for firstprivate (ret) lastprivate (ret)
18
  for (i = 0; i < 2; i++)
19
    ret.i += i;
20
 
21
  return ret;
22
}

powered by: WebSVN 2.1.0

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