OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c++/34774
[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); }