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
PR tree-optimization/67955
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
tree-ssa
/
pr46987.C
blob
7163915a29856fd83f233663b562db4fc1eba45d
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