aro_translate_c: fix ast lowering of continue node

fixes #22601
This commit is contained in:
Techatrix committed 2025-03-07 22:20:35 +01:00
1 parent e6596cbbf0
commit de9c889a0e
2 files changed
+15 -1

No files matched your search

+1 -1
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(.{
@@ -0,0 +1,14 @@
void foo() {
for (;;) {
continue;
}
}
// translate-c
// c_frontend=clang
//
// pub export fn foo() void {
// while (true) {
// continue;
// }
// }