Be careful about comdat boundary in ICF (PR ipa/82352).
[official-gcc.git] / gcc / testsuite / g++.dg / opt / pr52429.C
blob0ab8b4015ae21476c4af09d7ff2ae243da43b033
1 // PR tree-optimization/52429
2 // { dg-do compile }
3 // { dg-require-effective-target pthread }
4 // { dg-options "-O -g -ftree-parallelize-loops=4" }
6 struct B
8   B () : b (__null) {}
9   int *b;
12 void *
13 operator new (__SIZE_TYPE__, void *p)
15   return p;
18 void
19 foo (B *x, unsigned y)
21   while (y--)
22     new (x) B;