Fixed: #2486 AS Loop in loop producing gotos in some cases

This commit is contained in:
Jindra Petřík
2025-07-13 18:45:54 +02:00
parent 405c9d4475
commit 7bfa09cd98
8 changed files with 148 additions and 6 deletions

View File

@@ -88,6 +88,7 @@ package
TestInnerFunctionScope;
TestInnerIf;
TestInnerTry;
TestLoopInLoop;
TestLogicalComputing;
TestManualConvert;
TestMetadata;

View File

@@ -0,0 +1,54 @@
package tests
{
public class TestLoopInLoop
{
public function run():*
{
var a:Boolean = true;
var b:Boolean = true;
var c:Boolean = true;
for (;;)
{
trace("A");
for (var i = 0; i < 10; i++)
{
if (a)
{
continue;
}
trace("B");
if (c)
{
trace("C");
}
else
{
trace("D");
if (b)
{
continue;
}
trace("H");
}
if (c)
{
trace("L");
}
}
if (a)
{
break;
}
}
}
}
}