aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-03-01 13:30:25 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-03-01 14:58:37 -0700
commit1b194931b0df08db0f38a284bb10b89cc00a8817 (patch)
tree9b6c1f4a7f265e36f02dc7a0c03780f22ddd1713 /test
parent18e42661dc9b8199311ee086b24ef5c85cf4708f (diff)
downloadzig-1b194931b0df08db0f38a284bb10b89cc00a8817.tar.gz
zig-1b194931b0df08db0f38a284bb10b89cc00a8817.zip
LLVM: fix when sret and isByRef ret_ty disagree
This can happen functions use the C ABI.
Diffstat (limited to 'test')
-rw-r--r--test/behavior/struct.zig5
1 files changed, 3 insertions, 2 deletions
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 {