repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr43801.C
blob
3b52d4abcc63f640dcdc21a55f6042715b5667d3
1
// PR tree-optimization/43801
2
// { dg-do compile }
3
// { dg-options "-fipa-cp -fipa-cp-clone" }
4
5
struct A
6
{
7
virtual void f (int);
8
};
9
struct B : virtual A
10
{
11
virtual void f (int i) { if (i) A::f(0); }
12
};
13
struct C : virtual B
14
{
15
virtual void f (int) { B::f(0); }
16
};
17
18
void
19
foo ()
20
{
21
C ();
22
}