From c4d297b1af832739a487fa511d16b902dd4fca99 Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Wed, 7 Sep 2022 20:37:37 +0200 Subject: [PATCH] test-cases: add missing incremental x86_64-windows test cases --- .../hello_world_with_updates.0.zig | 6 ++++++ .../hello_world_with_updates.1.zig | 6 ++++++ .../hello_world_with_updates.2.zig | 16 ++++++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 test/cases/x86_64-windows/hello_world_with_updates.0.zig create mode 100644 test/cases/x86_64-windows/hello_world_with_updates.1.zig create mode 100644 test/cases/x86_64-windows/hello_world_with_updates.2.zig 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! +//