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

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