☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
cast1.C
☽
☼
gcc/testsuite/g++.old-deja/g++.other/cast1.C
code
plain
raw
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
}