diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/parse2.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/parse2.C | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/parse2.C b/gcc/testsuite/g++.old-deja/g++.other/parse2.C new file mode 100644 index 000000000..330b05fb0 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/parse2.C @@ -0,0 +1,11 @@ +// { dg-do assemble } + +// Copyright (C) 2000 Free Software Foundation, Inc. +// Contributed by Nathan Sidwell 24 Nov 2000 <nathan@codesourcery.com> + +// Bug 531: We ICEd trying to give a parse error. + +struct X +{ + bool operator (const X &) const; // { dg-error "" } parse error +}; |