OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2010-12-22 Martin Jambor <mjambor@suse.cz>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
tree-ssa
/
pr46987.C
1
/* { dg-do compile } */
2
/* { dg-options "-O" } */
3
4
struct A {
5
virtual A *getThis();
6
};
7
8
struct B {
9
virtual B *getThis();
10
};
11
12
struct AB : public A, public B {
13
virtual AB *getThis() { return 0; }
14
};
15
16
void foo ()
17
{
18
AB ab;
19
B *b = &ab;
20
b->getThis();
21
}
22