zig/test/link/bss/build.zig

18 lines
396 B
Zig
Raw Normal View History

const std = @import("std");
pub fn build(b: *std.Build) void {
const test_step = b.step("test", "Test");
b.default_step = test_step;
2023-01-31 12:39:43 +08:00
const exe = b.addExecutable(.{
.name = "bss",
.root_source_file = .{ .path = "main.zig" },
.optimize = .Debug,
2023-01-31 12:39:43 +08:00
});
const run = exe.run();
run.expectStdOutEqual("0, 1, 0\n");
test_step.dependOn(&run.step);
}