disable tests failing due to LLVM 15 regressions

This commit is contained in:
Andrew Kelley 2022-08-29 22:38:26 -07:00
parent bf28765a97
commit 3c506c8aaa
3 changed files with 80 additions and 66 deletions

View File

@ -1089,6 +1089,12 @@ test "namespace lookup ignores decl causing the lookup" {
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_llvm) {
// regressed with LLVM 15
// https://github.com/ziglang/zig/issues/12681
return error.SkipZigTest;
}
const S = struct { const S = struct {
fn Mixin(comptime T: type) type { fn Mixin(comptime T: type) type {
return struct { return struct {

View File

@ -1868,6 +1868,9 @@ pub fn addCases(cases: *tests.RunTranslatedCContext) void {
\\} \\}
, ""); , "");
// Regressed with LLVM 15:
// https://github.com/ziglang/zig/issues/12682
if (false) {
// The C standard does not require function pointers to be convertible to any integer type. // The C standard does not require function pointers to be convertible to any integer type.
// However, POSIX requires that function pointers have the same representation as `void *` // However, POSIX requires that function pointers have the same representation as `void *`
// so that dlsym() can work // so that dlsym() can work
@ -1882,3 +1885,4 @@ pub fn addCases(cases: *tests.RunTranslatedCContext) void {
\\} \\}
, ""); , "");
} }
}

View File

@ -3173,6 +3173,9 @@ pub fn addCases(cases: *tests.TranslateCContext) void {
\\} \\}
}); });
// Regressed with LLVM 15:
// https://github.com/ziglang/zig/issues/12682
if (false) {
if (builtin.zig_backend != .stage1) { if (builtin.zig_backend != .stage1) {
cases.add("implicit casts", cases.add("implicit casts",
\\#include <stdbool.h> \\#include <stdbool.h>
@ -3227,6 +3230,7 @@ pub fn addCases(cases: *tests.TranslateCContext) void {
\\} \\}
}); });
} }
}
if (builtin.zig_backend != .stage1) { if (builtin.zig_backend != .stage1) {
cases.add("function call", cases.add("function call",