We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08b6bac commit 7437c47Copy full SHA for 7437c47
test/stage1/behavior/struct.zig
@@ -933,9 +933,10 @@ test "packed struct with undefined initializers" {
933
var p: P = undefined;
934
p = P{ .a = 2, .b = 4, .c = 6 };
935
// Make sure the compiler doesn't touch the unprefixed fields.
936
- try expectEqual(@as(u3, 2), p.a);
937
- try expectEqual(@as(u3, 4), p.b);
938
- try expectEqual(@as(u3, 6), p.c);
+ // Use expect since i386-linux doesn't like expectEqual
+ try expect(p.a == 2);
+ try expect(p.b == 4);
939
+ try expect(p.c == 6);
940
}
941
};
942
0 commit comments