OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
617db0504348a91be5150cefb59a5e46b52439d9
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
opt
/
devirt1.C
1
// { dg-do compile }
2
// { dg-options "-O" }
3
// { dg-final { scan-assembler "xyzzy" } }
4
5
struct S { S(); virtual void xyzzy(); };
6
inline void foo(S *s) { s->xyzzy(); }
7
void bar() { S s; foo(&s); }