diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/crash42.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/crash42.C | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/crash42.C b/gcc/testsuite/g++.old-deja/g++.other/crash42.C new file mode 100644 index 000000000..a6d9e6149 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/crash42.C @@ -0,0 +1,17 @@ +// { dg-do assemble } +// { dg-options "-g" } +// +// Copyright (C) 2001 Free Software Foundation, Inc. +// Contributed by Nathan Sidwell 25 Jul 2001 <nathan@codesourcery.com> + +// Bug 3152. Using a typedef to declare a function used an unset +// global variable, last_function_parms. + +struct actor +{ + typedef bool (operation)(); + + operation a; + operation b; + operation c; +}; |