From bfb88b2d0dc9ca9663a2346d707ff4f0034739ba Mon Sep 17 00:00:00 2001 From: Jacob G-W Date: Sun, 17 Oct 2021 21:04:06 -0400 Subject: [PATCH] plan9: add test for std --- test/stage2/plan9.zig | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/stage2/plan9.zig b/test/stage2/plan9.zig index 09affac763..c82f95aa7b 100644 --- a/test/stage2/plan9.zig +++ b/test/stage2/plan9.zig @@ -43,6 +43,13 @@ pub fn addCases(ctx: *TestContext) !void { \\ : "rcx", "rbp", "r11", "memory" \\ ); \\} - , ""); + , "Hello World\n"); + case.addCompareOutput( + \\const std = @import("std"); + \\pub fn main() void { + \\ const str = "Hello World!\n"; + \\ _ = std.os.plan9.pwrite(1, str, str.len, 0); + \\} + , "Hello World\n"); } }