mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:44:43 +01:00
parent
e6596cbbf0
commit
de9c889a0e
2 changed files with 15 additions and 1 deletions
|
|
@ -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(.{
|
||||
|
|
|
|||
14
test/cases/translate_c/continue_from_while.c
Normal file
14
test/cases/translate_c/continue_from_while.c
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
void foo() {
|
||||
for (;;) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
// translate-c
|
||||
// c_frontend=clang
|
||||
//
|
||||
// pub export fn foo() void {
|
||||
// while (true) {
|
||||
// continue;
|
||||
// }
|
||||
// }
|
||||
Loading…
Add table
Add a link
Reference in a new issue