Fix typo in test case
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / copy2.C
blob2fb52a1ece2b4d86e570d78d5a8c40d4f48d9282
1 // Origin: Mark Mitchell <mark@codesourcery.com>
3 int i;
5 struct B {
6   B () {}
7   B (B&) { i = 1; }
8   B (const B&) { i = 2; }
9 };
11 struct D : public B {
12   D () {}
15 int main ()
17   D d;
18   D d2 (d);
19   if (i != 2)
20     return 1;