Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
opt
/
devirt1.C
blob: f9b4dc2fc31b87b0286f4461f4eba3bd8d930ae1 [
file
] [
log
] [
blame
]
// { dg-do compile }
// { dg-options "-O2" }
// { dg-final { scan-assembler "xyzzy" } }
struct
S
{
S
();
virtual
void
xyzzy
();
};
inline
void
foo
(
S
*
s
)
{
s
->
xyzzy
();
}
void
bar
()
{
S s
;
foo
(&
s
);
}