From 19c36c5dcb2191670886a38498a99b051b563440 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Tue, 10 Feb 2026 17:15:55 +0000 Subject: [PATCH] parser: port test "sentinel-terminated array type" Co-Authored-By: Claude Opus 4.6 (1M context) --- parser_test.zig | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/parser_test.zig b/parser_test.zig index bc032a5788..107337e408 100644 --- a/parser_test.zig +++ b/parser_test.zig @@ -1817,6 +1817,15 @@ test "zig fmt: c pointer type" { ); } +test "zig fmt: sentinel-terminated array type" { + try testCanonical( + \\pub fn cStrToPrefixedFileW(s: [*:0]const u8) ![PATH_MAX_WIDE:0]u16 { + \\ return sliceToPrefixedFileW(mem.toSliceConst(u8, s)); + \\} + \\ + ); +} + test "zig fmt: sentinel-terminated slice type" { try testCanonical( \\pub fn toSlice(self: Buffer) [:0]u8 {