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
/
p4511.C
blob
25348f4635f2d71bb364d09b7355eae4c3b901ca
1
// { dg-do run }
2
// prms-id: 4511
3
4
int bad;
5
6
class A {
7
public:
8
virtual void dummy (){}
9
};
10
11
class B {
12
public:
13
virtual void f(void) = 0;
14
};
15
16
class C : public A, public B {
17
public:
18
void f(void) { bad=1; }
19
};
20
21
class D : public C {
22
public:
23
void f(void) { }
24
};
25
26
class E : public D { };
27
28
int main() {
29
E e;
30
e.f();
31
E * ep = &e;
32
ep->f();
33
return bad;
34
}