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