repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
opt
/
pr52429.C
blob
0ab8b4015ae21476c4af09d7ff2ae243da43b033
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
}