commit c4d297b1af832739a487fa511d16b902dd4fca99 (tree)
parent a226aef36cc441be4af675e24b3e672fe3fe2d5a
Author: Jakub Konka <kubkon@jakubkonka.com>
Date: Wed, 7 Sep 2022 20:37:37 +0200
test-cases: add missing incremental x86_64-windows test cases
Diffstat:
3 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/test/cases/x86_64-windows/hello_world_with_updates.0.zig b/test/cases/x86_64-windows/hello_world_with_updates.0.zig
@@ -0,0 +1,6 @@
+// error
+// output_mode=Exe
+// target=x86_64-windows
+//
+// :130:9: error: struct 'tmp.tmp' has no member named 'main'
+// :7:1: note: struct declared here
diff --git a/test/cases/x86_64-windows/hello_world_with_updates.1.zig b/test/cases/x86_64-windows/hello_world_with_updates.1.zig
@@ -0,0 +1,6 @@
+pub export fn main() noreturn {}
+
+// error
+//
+// :1:32: error: function declared 'noreturn' returns
+// :1:22: note: 'noreturn' declared here
diff --git a/test/cases/x86_64-windows/hello_world_with_updates.2.zig b/test/cases/x86_64-windows/hello_world_with_updates.2.zig
@@ -0,0 +1,16 @@
+const std = @import("std");
+
+pub fn main() void {
+ print();
+}
+
+fn print() void {
+ const msg = "Hello, World!\n";
+ const stdout = std.io.getStdOut();
+ stdout.writeAll(msg) catch unreachable;
+}
+
+// run
+//
+// Hello, World!
+//