2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / init / save1.C
blob2358eb50c9d7f3f2e70bafab5f74e73979404ef7
1 // PR c++/8748
2 // We were wrapping the ARRAY_REF in a SAVE_EXPR, causing us to try to make a bitwise
3 // copy of b[0].
5 struct A
7     int i;
8 };
10 struct B : A
12     virtual ~B();
15 struct C
17     B b[1];
20 void foo() { C().b[0].i; }