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
Be careful about comdat boundary in ICF (PR ipa/82352).
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
opt
/
pr52582.C
blob
4ba8a26f30f267c6ddeebc40ac74f28ed5e6cb21
1
// PR c++/52582
2
// { dg-do compile }
3
// { dg-options "-O2" }
4
5
inline void *operator new (__SIZE_TYPE__, void *p) throw ()
6
{
7
return p;
8
}
9
10
struct B
11
{
12
virtual ~B ();
13
B ();
14
};
15
16
struct A : B
17
{
18
A () : B () {}
19
virtual void bar ();
20
};
21
22
void
23
foo ()
24
{
25
char a[64];
26
B *b = new (&a) A ();
27
b->~B ();
28
}