commit bfb88b2d0dc9ca9663a2346d707ff4f0034739ba (tree)
parent 73be14027d91641d59058c24ceb82c7ef46c2796
Author: Jacob G-W <jacoblevgw@gmail.com>
Date: Sun, 17 Oct 2021 21:04:06 -0400
plan9: add test for std
Diffstat:
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git 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");
}
}