blob: 278cb63b938599f19405af2a733b3c4fe0171f55 [file] [log] [blame]
// PR c++/21113
// { dg-options "" }
void
f (int n)
{
goto label; // { dg-error "from here" }
int a[n]; // { dg-error "crosses initialization" }
label: // { dg-error "jump to label" }
;
}
void
g (int n)
{
switch (1)
{
case 1:
int (*a)[n]; // { dg-error "crosses initialization" }
default: // { dg-error "jump to case label" }
;
}
}