]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/g++.dg/eh/goto3.C
250324e08f41a5baaa1bebfbd1dea9e0cffa7454
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / eh / goto3.C
1 // PR c++/67409
2 // { dg-options "-fpermissive" }
3
4 void f()
5 try
6 {
7 goto l2; // { dg-message "from here" }
8 l1: ; // { dg-error "jump to label 'l1'" }
9 } catch (...)
10 {
11 l2: ; // { dg-error "jump to label 'l2'" }
12 // { dg-message "enters catch block" "" { target *-*-*} .-1 }
13 goto l1; // { dg-message "from here|enters try block" }
14 }