2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / opt / static1.C
blob05429e18bb559438819daefe8cd7ab53d650b661
1 // PR c++/6073
2 // This testcase ICEd because finish_struct_bits changed
3 // A's and const A's TYPE_MODE from QI to BLK, but did
4 // not change a's DECL_MODE because its mode was not
5 // TYPE_MAIN_VARIANT.
7 struct A
9   static const A a;
10   ~A ();
13 void bar (A x);
14 void foo ();
16 void
17 foo ()
19   bar (A::a);