2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / crash39.C
bloba7af2881bed78eabcdc3a8d80895eda25b68f23a
1 // { dg-do assemble  }
3 // Copyright (C) 2000 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 10 Jan 2001 <nathan@codesourcery.com>
6 // Bug 595. We failed to clear out some things after seeing a duplicate
7 // struct definition. That caused us to become inconsistent.
9 struct X
11   ~X ();
13 struct S { X a; };  // { dg-error "" } previous defn
14 struct S { X a; };  // { dg-error "" } redefinition
16 void c1(S s)