gcc/testsuite/g++.old-deja/g++.other/crash42.C
raw| 1 | // { dg-do assemble } |
| 2 | // { dg-options "-g" } |
| 3 | // |
| 4 | // Copyright (C) 2001 Free Software Foundation, Inc. |
| 5 | // Contributed by Nathan Sidwell 25 Jul 2001 <[email protected]> |
| 6 | |
| 7 | // Bug 3152. Using a typedef to declare a function used an unset |
| 8 | // global variable, last_function_parms. |
| 9 | |
| 10 | struct actor |
| 11 | { |
| 12 | typedef bool (operation)(); |
| 13 | |
| 14 | operation a; |
| 15 | operation b; |
| 16 | operation c; |
| 17 | }; |