diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/crash39.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/crash39.C | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/crash39.C b/gcc/testsuite/g++.old-deja/g++.other/crash39.C new file mode 100644 index 000000000..a7af2881b --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/crash39.C @@ -0,0 +1,18 @@ +// { dg-do assemble } + +// 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; }; // { dg-error "" } previous defn +struct S { X a; }; // { dg-error "" } redefinition + +void c1(S s) +{ +} |