Debian Codegraph @

gcc/testsuite/g++.dg/opt/pr52429.C

raw
1 // 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 }