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
tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle BIT_FIELD_REF.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
p4736a.C
blob
f50dbcdb3313c2b69336d0cf8f07e3e055aa0502
1
// { dg-do run }
2
// prms-id: 4736
3
4
int did_fail = 1;
5
6
class O {
7
public:
8
virtual void of() { }
9
};
10
11
class A : public O {
12
public:
13
virtual void vf() { }
14
};
15
16
class W {
17
public:
18
virtual void vf() { }
19
};
20
21
class X : public W, public A {
22
public:
23
virtual void vf() { }
24
};
25
26
class Z : public X {
27
public:
28
virtual void vf() { did_fail = 0; }
29
};
30
31
Z sz;
32
33
void fail1(W* w) {
34
w->vf();
35
}
36
37
int main() {
38
fail1 (&sz);
39
return did_fail;
40
}