Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / tree-ssa / pr22488.C
blob9063b067a5202f74c4badb6b3b1a94d6b72ab18f
1 // PR tree-optimization/22488
2 // This testcase is really a C++ FE bug in represnting virtual inheritance
3 // It gives the appearance to the middle end that the fields exist twice
4 // which resulted in a very confused structure analyzer
5 // { dg-do compile }
6 // { dg-options "-O" }
7 struct X
9     int i0, i1;
10       char c;
13 struct A
15     int i;
16       char c0, c1;
18         virtual ~A();
21 struct B : virtual A {};
23 struct C : B
25     X x;
27       void bar(X y) { x = y; }
30 void foo()
32     C().bar(X());