mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Fix issue with labelled break inside of a $switch.
This commit is contained in:
17
test/test_suite/compile_time/compile_time_with_break.c3t
Normal file
17
test/test_suite/compile_time/compile_time_with_break.c3t
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user