2 // { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
4 // Based on a testcase submitted by Tudor Hulubei <tudor@cs.unh.edu>
6 // X is not a POD because it has a user-defined destructor.
7 // Therefore, we can't cross its initialization.
9 // vector<int> is not even an aggregate; nevertheless, no error is
17 goto bar; // { dg-message "" } jump from here
18 A x; // { dg-message "" } jump crosses initialization
19 bar: // { dg-error "" } jump to here
28 // This was ill-formed until DR 2256.
38 goto bar; // { dg-message "" } jump from here
39 std::vector<int> x; // { dg-message "" } jump crosses initialization
40 bar: // { dg-error "" } jump to here