zig

fork of https://codeberg.org/ziglang/zig
Log | Tree | Refs | README | LICENSE

commit aa1c780560df4a9d2b2aa93202010574e3d84063 (tree)
parent 48efa3bcb678ac2f869554b4c5383f865ad73a33
Author: Lewis Gaul <legaul@cisco.com>
Date:   Mon, 15 Mar 2021 14:23:26 +0000

Add test for multi-line while cont expr with same-line then expr

Diffstat:
Mlib/std/zig/parser_test.zig | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/lib/std/zig/parser_test.zig b/lib/std/zig/parser_test.zig @@ -3068,6 +3068,11 @@ test "zig fmt: while" { \\ while (i < 10) : ({ \\ i += 1; \\ j += 1; + \\ }) continue; + \\ + \\ while (i < 10) : ({ + \\ i += 1; + \\ j += 1; \\ }) { \\ continue; \\ }