blob: 0dbd395a1989838f39e0283c9c8e03dfd41e9411 [file] [log] [blame]
// Build don't link:
// Copyright (C) 2000 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 10 Jan 2001 <nathan@codesourcery.com>
// Bug 595. We failed to clear out some things after seeing a duplicate
// struct definition. That caused us to become inconsistent.
struct X
{
~X ();
};
struct S { X a; }; // ERROR - previous defn
struct S { X a; }; // ERROR - redefinition
void c1(S s)
{
}