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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [gomp/] [pr27337-1.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 middle-end/27337
2
// { dg-do compile }
3
 
4
struct S
5
{
6
  S ();
7
  ~S ();
8
  double &operator* () const;
9
};
10
 
11
S
12
foo ()
13
{
14
  int i;
15
  S ret;
16
 
17
#pragma omp parallel for
18
  for (i = 0; i < 2; i++)
19
    *ret += 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.