mirror of
https://github.com/ziglang/zig.git
synced 2025-12-25 15:43:06 +00:00
test-cases: add missing incremental x86_64-windows test cases
This commit is contained in:
parent
a226aef36c
commit
c4d297b1af
6
test/cases/x86_64-windows/hello_world_with_updates.0.zig
Normal file
6
test/cases/x86_64-windows/hello_world_with_updates.0.zig
Normal file
@ -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
|
||||
6
test/cases/x86_64-windows/hello_world_with_updates.1.zig
Normal file
6
test/cases/x86_64-windows/hello_world_with_updates.1.zig
Normal file
@ -0,0 +1,6 @@
|
||||
pub export fn main() noreturn {}
|
||||
|
||||
// error
|
||||
//
|
||||
// :1:32: error: function declared 'noreturn' returns
|
||||
// :1:22: note: 'noreturn' declared here
|
||||
16
test/cases/x86_64-windows/hello_world_with_updates.2.zig
Normal file
16
test/cases/x86_64-windows/hello_world_with_updates.2.zig
Normal file
@ -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!
|
||||
//
|
||||
Loading…
x
Reference in New Issue
Block a user