]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/g++.dg/eh/goto2.C
trans.c (check_inlining_for_nested_subprog): Quote reserved names.
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / eh / goto2.C
CommitLineData
c7837f7e
PC
1// PR c++/32080
2
3void f()
4try
5 {
61a1a73e 6 goto l2; // { dg-message "from here" }
c7837f7e
PC
7 l1: ; // { dg-error "jump to label 'l1'" }
8 } catch (...)
9 {
61a1a73e 10 l2: ; // { dg-error "jump to label 'l2'" }
a9c697b8
MS
11 // { dg-message "enters 'catch' block" "" { target *-*-*} .-1 }
12 goto l1; // { dg-message "from here|enters 'try' block" }
c7837f7e 13 }