repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr83471.C
blob
b9687265d77b45254e712a848d6ce83ba661ce19
1
/* { dg-do compile } */
2
3
class a {
4
public:
5
void *operator new(__SIZE_TYPE__, int);
6
};
7
class b : public a {
8
public:
9
b();
10
virtual void c() {}
11
void m_fn2();
12
};
13
int d;
14
void e() {
15
long f;
16
b *g;
17
(f);
18
g = new (d) b;
19
g->c();
20
g->m_fn2();
21
}