libgccjit: Add ability to get the alignment of a type
[official-gcc.git] / gcc / testsuite / g++.dg / eh / goto3.C
blob415782cfd1f82fe4bfd1ca5763efe8a86d85c5cd
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   }