Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr81462.C
blob: 044c8b78ee5054be60c313c07cdad0dcf2a1bf05 [
file
] [
log
] [
blame
]
// { dg-do compile }
// { dg-options "-O1 -fno-ipa-pure-const" }
struct
B
{
B
*
self
;
B
()
:
self
(
this
)
{
self
->
f
();
}
virtual
void
f
()
=
0
;
};
struct
D
:
B
{
void
f
()
{}
};
int
main
()
{
D d
;
}