aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/opt/devirt1.C
blob: f9b4dc2fc31b87b0286f4461f4eba3bd8d930ae1 (plain)
1
2
3
4
5
6
7
// { 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); }