Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr83471.C
blob: b9687265d77b45254e712a848d6ce83ba661ce19 [
file
] [
log
] [
blame
]
/* { dg-do compile } */
class
a
{
public
:
void
*
operator
new
(
__SIZE_TYPE__
,
int
);
};
class
b
:
public
a
{
public
:
b
();
virtual
void
c
()
{}
void
m_fn2
();
};
int
d
;
void
e
()
{
long
f
;
b
*
g
;
(
f
);
g
=
new
(
d
)
b
;
g
->
c
();
g
->
m_fn2
();
}