mirror of
https://github.com/ziglang/zig.git
synced 2026-02-14 21:38:33 +00:00
parent
e6596cbbf0
commit
de9c889a0e
@ -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…
x
Reference in New Issue
Block a user