diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/crash30.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/crash30.C | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/crash30.C b/gcc/testsuite/g++.old-deja/g++.other/crash30.C new file mode 100644 index 000000000..043d54fa4 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/crash30.C @@ -0,0 +1,17 @@ +// { dg-do assemble } +// Origin: Jakub Jelinek <jakub@redhat.com> + +struct foo +{ + foo(); + void x(); +}; + +void foo::x() throw(bar) // { dg-error "" } parse error +{ +} + +void bar() +{ + foo x; +} |