mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
$for ct-state not properly popped.
This commit is contained in:
16
test/test_suite/compile_time/pop_ct_for.c3
Normal file
16
test/test_suite/compile_time/pop_ct_for.c3
Normal file
@@ -0,0 +1,16 @@
|
||||
fn int main()
|
||||
{
|
||||
$for var $i = 1; $i < 8; ++$i :
|
||||
$endfor
|
||||
|
||||
$for var $i = 0; $i < 8; ++$i :
|
||||
$endfor
|
||||
|
||||
const int[*] ABC = { 1, 2, 3 };
|
||||
$foreach $i, $val : ABC:
|
||||
$endforeach
|
||||
$foreach $i, $val : ABC:
|
||||
$endforeach
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user