1 // { dg-do assemble  }
2 
3 // Copyright (C) 2000 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 10 Jan 2001 <nathan@codesourcery.com>
5 
6 // Bug 595. We failed to clear out some things after seeing a duplicate
7 // struct definition. That caused us to become inconsistent.
8 
9 struct X
10 {
11   ~X ();
12 };
13 struct S { X a; };  // { dg-message "" } previous defn
14 struct S { X a; };  // { dg-error "" } redefinition
15 
c1(S s)16 void c1(S s)
17 {
18 }
19