aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2022-09-07 20:37:37 +0200
committerJakub Konka <kubkon@jakubkonka.com>2022-09-07 22:42:59 +0200
commitc4d297b1af832739a487fa511d16b902dd4fca99 (patch)
tree4ede64f71ded2565e6b2fa83bb63ab9c7798cf59 /test
parenta226aef36cc441be4af675e24b3e672fe3fe2d5a (diff)
downloadzig-c4d297b1af832739a487fa511d16b902dd4fca99.tar.gz
zig-c4d297b1af832739a487fa511d16b902dd4fca99.zip
test-cases: add missing incremental x86_64-windows test cases
Diffstat (limited to 'test')
-rw-r--r--test/cases/x86_64-windows/hello_world_with_updates.0.zig6
-rw-r--r--test/cases/x86_64-windows/hello_world_with_updates.1.zig6
-rw-r--r--test/cases/x86_64-windows/hello_world_with_updates.2.zig16
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
new file mode 100644
index 0000000000..142699b9da
--- /dev/null
+++ 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
new file mode 100644
index 0000000000..e18a4c6a1e
--- /dev/null
+++ 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
new file mode 100644
index 0000000000..6c2fd5b24e
--- /dev/null
+++ 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!
+//