Commit 34d02f249b

LemonBoy <thatlemon@gmail.com>
2019-09-21 11:35:29
Fix a test on ARM due to the use of `undefined` ptr
1 parent 57f751a
Changed files (1)
test
stage1
behavior
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");
         }