authorgravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2019-09-21 11:35:29+02:00
committergravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2019-09-21 11:39:50+02:00
log34d02f249b8c0742d5d575c439c38a3ed78f9583
treee0715f30acb96f0ab2f4838dbc14e9f07b540d45
parent57f751a864613cc7c6b53774044d6f8742e05378

Fix a test on ARM due to the use of `undefined` ptr


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

test/stage1/behavior/error.zig+2-1
...@@ -361,7 +361,8 @@ test "nested catch" {...@@ -361,7 +361,8 @@ test "nested catch" {
361test "implicit cast to optional to error union to return result loc" {361test "implicit cast to optional to error union to return result loc" {
362 const S = struct {362 const S = struct {
363 fn entry() void {363 fn entry() void {
364 if (func(undefined)) |opt| {364 var x: Foo = undefined;
365 if (func(&x)) |opt| {
365 expect(opt != null);366 expect(opt != null);
366 } else |_| @panic("expected non error");367 } else |_| @panic("expected non error");
367 }368 }