From 34d02f249b8c0742d5d575c439c38a3ed78f9583 Mon Sep 17 00:00:00 2001 From: LemonBoy Date: Sat, 21 Sep 2019 11:35:29 +0200 Subject: [PATCH] Fix a test on ARM due to the use of `undefined` ptr --- test/stage1/behavior/error.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/stage1/behavior/error.zig b/test/stage1/behavior/error.zig index fefd95a85024d8906df3158c7595f07b2999ce08..983f790cbee93d90e78ed1c1a04aa6f87cc153bf 100644 --- a/test/stage1/behavior/error.zig +++ b/test/stage1/behavior/error.zig @@ -361,7 +361,8 @@ test "nested catch" { test "implicit cast to optional to error union to return result loc" { const S = struct { fn entry() void { - if (func(undefined)) |opt| { + var x: Foo = undefined; + if (func(&x)) |opt| { expect(opt != null); } else |_| @panic("expected non error"); } -- 2.54.0