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
/cp
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
cast1.C
1
// { dg-do assemble }
2
3
struct S0 { };
4
struct S1 : virtual public S0 { };
5
struct S2 : virtual public S0 { };
6
7
struct S3 : public S1, public S2, virtual public S0
8
{
9
};
10
11
void f(const S0*) {}
12
13
void g()
14
{
15
f(static_cast<S3*>(0));
16
}