Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
ipa
/
pr65722.C
blob: ee4ea24c25cfa62ef8051dd6cfc5ae2d80010e79 [
file
] [
log
] [
blame
]
// { dg-do compile }
// { dg-options "-O -fipa-icf -fno-rtti" }
struct
A
{
virtual
void
f
()
{
__builtin_abort
();
}
virtual
void
g
();
};
struct
B
:
virtual
A
{
};
struct
C
:
B
,
virtual
A
{
};
void
foo
()
{
C c
;
C
*
p
=
&
c
;
p
->
f
();
}