mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Corrected ptr->bool conversion. Avoid checking function body if function is invalid. Switch defer test cases.
This commit is contained in:
committed by
Christoffer Lerno
parent
c839eb50c8
commit
90ab4f07b9
35
test/test_suite/statements/labelled_continue_for.c3t
Normal file
35
test/test_suite/statements/labelled_continue_for.c3t
Normal file
@@ -0,0 +1,35 @@
|
||||
func void errored()
|
||||
{}
|
||||
|
||||
func void test() {}
|
||||
|
||||
func void testBreak()
|
||||
{
|
||||
for FOO: (int i = 0; i < 10; i++)
|
||||
{
|
||||
for (int j = 0; j < 10; j++)
|
||||
{
|
||||
for BAR: (int k = 0; k < 10; k++)
|
||||
{
|
||||
test();
|
||||
continue FOO;
|
||||
}
|
||||
errored();
|
||||
}
|
||||
errored();
|
||||
}
|
||||
}
|
||||
|
||||
// #expect: labelled_continue_for.ll
|
||||
|
||||
for.cond:
|
||||
|
||||
call void @labelled_continue_for.test()
|
||||
br label %for.inc8
|
||||
|
||||
for.inc8:
|
||||
%4 = load i32, i32* %i
|
||||
%add9 = add nsw i32 %4, 1
|
||||
store i32 %add9, i32* %i
|
||||
br label %for.cond
|
||||
|
||||
Reference in New Issue
Block a user