Fix issue with labelled break inside of a $switch.

This commit is contained in:
Christoffer Lerno
2025-07-03 13:11:12 +02:00
parent 04626b72cd
commit 8b47317ec7
3 changed files with 21 additions and 2 deletions

View File

@@ -0,0 +1,17 @@
enum Test
{
FOO,
}
fn int main()
{
int v;
$switch (Test.FOO):
$case FOO:
if START: (v < 5)
{
if (v > 3) break START;
}
$endswitch
return 0;
}