2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / opt / pr47366.C
blobe133edfbf1bae3c17dca04d0a0ac8f04f5c7edf6
1 // PR rtl-optimization/47366
2 // { dg-do compile }
3 // { dg-options "-O -fnon-call-exceptions -fno-tree-ccp -fno-tree-forwprop" }
5 struct A
7   int i;
8   virtual ~A ();
9 };
11 struct B : virtual A
12 {};
14 struct C : B
16   void bar () {}
19 void foo ()
21   C ().bar ();