OSDN Git Service

PR tree-optimization/43801
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / torture / pr43801.C
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 }