mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
stage2 test harness: ask for the backend explicitly
Follow-up to 35d6ee08c468642969b594b711dd6448bbaefa89
This commit is contained in:
parent
1d1364c3cd
commit
69d78bdae4
@ -886,9 +886,9 @@ pub const TestContext = struct {
|
||||
.directory = emit_directory,
|
||||
.basename = "test_case.h",
|
||||
} else null;
|
||||
const use_llvm: ?bool = switch (case.backend) {
|
||||
const use_llvm: bool = switch (case.backend) {
|
||||
.llvm => true,
|
||||
else => null,
|
||||
else => false,
|
||||
};
|
||||
const comp = try Compilation.create(allocator, .{
|
||||
.local_cache_directory = zig_cache_directory,
|
||||
|
||||
@ -432,7 +432,7 @@ pub fn addCases(ctx: *TestContext) !void {
|
||||
\\ a = @as(?usize, null);
|
||||
\\}
|
||||
, &[_][]const u8{
|
||||
":3:21: error: expected pointer type, found '?usize'",
|
||||
":3:21: error: expected *anyopaque, found ?usize",
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user