Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
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
();
}