mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
28 lines
370 B
D
28 lines
370 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/test20096.d(15): Error: cannot `goto` into `try` block
|
|
---
|
|
*/
|
|
// https://issues.dlang.org/show_bug.cgi?id=20096
|
|
|
|
void test()
|
|
{
|
|
int x;
|
|
|
|
try {
|
|
L2:
|
|
goto L1;
|
|
|
|
try
|
|
{
|
|
L1:
|
|
++x;
|
|
goto L2;
|
|
}
|
|
finally
|
|
{
|
|
++x;
|
|
}
|
|
} finally {}
|
|
}
|