repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
cast1.C
blob
989667a378d0684c7069cce0a0be35a8c65a3417
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
}