diff options
| author | Noam Preil <pleasantatk@gmail.com> | 2020-07-07 14:55:44 -0400 |
|---|---|---|
| committer | Noam Preil <pleasantatk@gmail.com> | 2020-07-07 14:55:44 -0400 |
| commit | b4c571301be7dd2174b2d067d643a2a093797e7e (patch) | |
| tree | b7dcb2e7e0913dffc22d7b30c1eccc7e190561cb /test | |
| parent | 0db0258fb2fed196791d3579fb3b893736d28d0a (diff) | |
| download | zig-b4c571301be7dd2174b2d067d643a2a093797e7e.tar.gz zig-b4c571301be7dd2174b2d067d643a2a093797e7e.zip | |
Stage2: Refactor in preparation for C backend
Diffstat (limited to 'test')
| -rw-r--r-- | test/stage2/cbe.zig | 18 | ||||
| -rw-r--r-- | test/stage2/test.zig | 1 |
2 files changed, 19 insertions, 0 deletions
diff --git a/test/stage2/cbe.zig b/test/stage2/cbe.zig new file mode 100644 index 0000000000..884f5c927f --- /dev/null +++ b/test/stage2/cbe.zig @@ -0,0 +1,18 @@ +const std = @import("std"); +const TestContext = @import("../../src-self-hosted/test.zig").TestContext; + +// These tests should work with all platforms, but we're using linux_x64 for +// now for consistency. Will be expanded eventually. +const linux_x64 = std.zig.CrossTarget{ + .cpu_arch = .x86_64, + .os_tag = .linux, +}; + +pub fn addCases(ctx: *TestContext) !void { + // // These tests should work on every platform + // ctx.c11("empty start function", linux_x64, + // \\export fn start() void {} + // , + // \\void start(void) {} + // ); +} diff --git a/test/stage2/test.zig b/test/stage2/test.zig index e0ef291588..f5acc72f93 100644 --- a/test/stage2/test.zig +++ b/test/stage2/test.zig @@ -4,4 +4,5 @@ pub fn addCases(ctx: *TestContext) !void { try @import("compile_errors.zig").addCases(ctx); try @import("compare_output.zig").addCases(ctx); try @import("zir.zig").addCases(ctx); + try @import("cbe.zig").addCases(ctx); } |
