Commit 7437c47d55
Changed files (1)
test
stage1
behavior
test/stage1/behavior/struct.zig
@@ -933,9 +933,10 @@ test "packed struct with undefined initializers" {
var p: P = undefined;
p = P{ .a = 2, .b = 4, .c = 6 };
// Make sure the compiler doesn't touch the unprefixed fields.
- try expectEqual(@as(u3, 2), p.a);
- try expectEqual(@as(u3, 4), p.b);
- 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);
+ try expect(p.c == 6);
}
};