authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-03-17 20:06:40-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-03-17 20:10:00-07:00
log69d78bdae4a5d0ec5877add5936ae8e9daf09140
tree8742f0c946570f9e031e14b9388509cc5eb69f57
parent1d1364c3cd296d628501bce131513ce18d2055a3

stage2 test harness: ask for the backend explicitly

Follow-up to 35d6ee08c468642969b594b711dd6448bbaefa89

2 files changed, 3 insertions(+), 3 deletions(-)

src/test.zig+2-2
...@@ -886,9 +886,9 @@ pub const TestContext = struct {...@@ -886,9 +886,9 @@ pub const TestContext = struct {
886 .directory = emit_directory,886 .directory = emit_directory,
887 .basename = "test_case.h",887 .basename = "test_case.h",
888 } else null;888 } else null;
889 const use_llvm: ?bool = switch (case.backend) {889 const use_llvm: bool = switch (case.backend) {
890 .llvm => true,890 .llvm => true,
891 else => null,891 else => false,
892 };892 };
893 const comp = try Compilation.create(allocator, .{893 const comp = try Compilation.create(allocator, .{
894 .local_cache_directory = zig_cache_directory,894 .local_cache_directory = zig_cache_directory,
test/stage2/llvm.zig+1-1
...@@ -432,7 +432,7 @@ pub fn addCases(ctx: *TestContext) !void {...@@ -432,7 +432,7 @@ pub fn addCases(ctx: *TestContext) !void {
432 \\ a = @as(?usize, null);432 \\ a = @as(?usize, null);
433 \\}433 \\}
434 , &[_][]const u8{434 , &[_][]const u8{
435 ":3:21: error: expected pointer type, found '?usize'",435 ":3:21: error: expected *anyopaque, found ?usize",
436 });436 });
437 }437 }
438}438}