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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [opt/] [pr52429.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 tree-optimization/52429
2
// { dg-do compile }
3
// { dg-require-effective-target pthread }
4
// { dg-options "-O -g -ftree-parallelize-loops=4" }
5
 
6
struct B
7
{
8
  B () : b (__null) {}
9
  int *b;
10
};
11
 
12
void *
13
operator new (__SIZE_TYPE__, void *p)
14
{
15
  return p;
16
}
17
 
18
void
19
foo (B *x, unsigned y)
20
{
21
  while (y--)
22
    new (x) B;
23
}

powered by: WebSVN 2.1.0

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