| author | |
| committer | |
| log | de9c889a0e7b8ef71d1c1d11985bf87e180885a6 |
| tree | 75108ce2fa42f8a9df7b7df4fd8918e6395bee7e |
| parent | e6596cbbf077e00190af5dfb418dd9c30ebe9b6f |
| signature |
fixes #226012 files changed, 15 insertions(+), 1 deletions(-)
lib/compiler/aro_translate_c/ast.zig+1-1| ... | ... | @@ -993,7 +993,7 @@ fn renderNode(c: *Context, node: Node) Allocator.Error!NodeIndex { |
| 993 | 993 | .main_token = try c.addToken(.keyword_continue, "continue"), |
| 994 | 994 | .data = .{ |
| 995 | 995 | .lhs = 0, |
| 996 | .rhs = undefined, | |
| 996 | .rhs = 0, | |
| 997 | 997 | }, |
| 998 | 998 | }), |
| 999 | 999 | .return_void => return c.addNode(.{ |
test/cases/translate_c/continue_from_while.c created+14| ... | ... | @@ -0,0 +1,14 @@ |
| 1 | void foo() { | |
| 2 | for (;;) { | |
| 3 | continue; | |
| 4 | } | |
| 5 | } | |
| 6 | ||
| 7 | // translate-c | |
| 8 | // c_frontend=clang | |
| 9 | // | |
| 10 | // pub export fn foo() void { | |
| 11 | // while (true) { | |
| 12 | // continue; | |
| 13 | // } | |
| 14 | // } |