aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/opt/devirt1.C
blob: 617db0504348a91be5150cefb59a5e46b52439d9 (plain)
1
2
3
4
5
6
7
// { dg-do compile }
// { dg-options "-O" }
// { dg-final { scan-assembler "xyzzy" } }

struct S { S(); virtual void xyzzy(); };
inline void foo(S *s) { s->xyzzy(); }
void bar() { S s; foo(&s); }