repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Sync usage with man page.
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
opt
/
pr18968.C
blob
cce73b5797121b0196d4610f640675969d917f8e
1
// { dg-do compile }
2
// { dg-options "-O1" }
3
struct X
4
{
5
int i;
6
};
7
struct Y : virtual X {};
8
struct Z : Y {};
9
struct A
10
{
11
Z* p;
12
A();
13
};
14
A::A() : p(0)
15
{
16
((X*)(Y*)p)->i++;
17
}
18