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
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr52582.C
blob
1b93fc490bd2090ac005472a03abd92408be9447
1
// PR c++/52582
2
3
inline void *operator new (__SIZE_TYPE__, void *p) throw ()
4
{
5
return p;
6
}
7
struct B
8
{
9
virtual ~B ();
10
B ();
11
};
12
struct A : B
13
{
14
A () : B () {}
15
virtual void bar ();
16
};
17
void
18
foo ()
19
{
20
char a[64];
21
B *b = new (&a) A ();
22
b->~B ();
23
}