From 1b194931b0df08db0f38a284bb10b89cc00a8817 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 1 Mar 2022 13:30:25 -0700 Subject: LLVM: fix when sret and isByRef ret_ty disagree This can happen functions use the C ABI. --- test/behavior/struct.zig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test/behavior/struct.zig') diff --git a/test/behavior/struct.zig b/test/behavior/struct.zig index a5e39ad071..fb4a7c4946 100644 --- a/test/behavior/struct.zig +++ b/test/behavior/struct.zig @@ -833,12 +833,13 @@ test "packed struct with fp fields" { } test "fn with C calling convention returns struct by value" { - if (builtin.zig_backend != .stage1) return error.SkipZigTest; // TODO + if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO + if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO const S = struct { fn entry() !void { var x = makeBar(10); - try expectEqual(@as(i32, 10), x.handle); + try expect(@as(i32, 10) == x.handle); } const ExternBar = extern struct { -- cgit v1.2.3