test-cases: add missing incremental x86_64-windows test cases
3 files changed, 28 insertions(+), 0 deletions(-)
test/cases/x86_64-windows/hello_world_with_updates.0.zig created+6
| ... | ... | @@ -0,0 +1,6 @@ |
| 1 | // error |
| 2 | // output_mode=Exe |
| 3 | // target=x86_64-windows |
| 4 | // |
| 5 | // :130:9: error: struct 'tmp.tmp' has no member named 'main' |
| 6 | // :7:1: note: struct declared here |
test/cases/x86_64-windows/hello_world_with_updates.1.zig created+6
| ... | ... | @@ -0,0 +1,6 @@ |
| 1 | pub export fn main() noreturn {} |
| 2 | |
| 3 | // error |
| 4 | // |
| 5 | // :1:32: error: function declared 'noreturn' returns |
| 6 | // :1:22: note: 'noreturn' declared here |
test/cases/x86_64-windows/hello_world_with_updates.2.zig created+16
| ... | ... | @@ -0,0 +1,16 @@ |
| 1 | const std = @import("std"); |
| 2 | |
| 3 | pub fn main() void { |
| 4 | print(); |
| 5 | } |
| 6 | |
| 7 | fn print() void { |
| 8 | const msg = "Hello, World!\n"; |
| 9 | const stdout = std.io.getStdOut(); |
| 10 | stdout.writeAll(msg) catch unreachable; |
| 11 | } |
| 12 | |
| 13 | // run |
| 14 | // |
| 15 | // Hello, World! |
| 16 | // |