Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.other/crash30.C

raw
1 // { dg-do assemble }
2 // Origin: Jakub Jelinek <[email protected]>
3
4 struct foo
5 {
6 foo();
7 void x();
8 };
9
10 void foo::x() throw(bar) // { dg-error "" } parse error
11 { // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } .-1 }
12 }
13
14 void bar()
15 {
16 foo x;
17 }