[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / eh / goto3.C
blob250324e08f41a5baaa1bebfbd1dea9e0cffa7454
1 // PR c++/67409
2 // { dg-options "-fpermissive" }
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   }