aro_translate_c: fix ast lowering of continue node

fixes #22601
This commit is contained in:
Techatrix 2025-01-25 19:32:33 +01:00
parent e6596cbbf0
commit de9c889a0e
No known key found for this signature in database
2 changed files with 15 additions and 1 deletions

View File

@ -993,7 +993,7 @@ fn renderNode(c: *Context, node: Node) Allocator.Error!NodeIndex {
.main_token = try c.addToken(.keyword_continue, "continue"),
.data = .{
.lhs = 0,
.rhs = undefined,
.rhs = 0,
},
}),
.return_void => return c.addNode(.{

View File

@ -0,0 +1,14 @@
void foo() {
for (;;) {
continue;
}
}
// translate-c
// c_frontend=clang
//
// pub export fn foo() void {
// while (true) {
// continue;
// }
// }