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