mirror of
https://github.com/ziglang/zig.git
synced 2026-01-04 04:25:05 +00:00
Fix a test on ARM due to the use of undefined ptr
This commit is contained in:
parent
57f751a864
commit
34d02f249b
@ -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");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user