authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-05-17 15:52:55-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-05-17 16:09:20-07:00
log910f67f77b8d58c812980e53bf59052139912985
tree6b3874b2b7f758deb7000f45e9b33f2bab3d7d1b
parent731c35f15a1469c9523b71476f1e069d5bcfd979

behavior tests: re-enable commented out test

Not sure why it was failing, also not sure why it started passing again

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

BRANCH_TODO-4
......@@ -16,10 +16,6 @@
1616 * AstGen: add result location pointers to function calls
1717 * nested function decl: how to refer to params?
1818
19 * fix the commented out behavior test regarding function alignment
20 - not sure why this happened, it's stage1 code??
21 - search the behavior test diff for "TODO"
22
2319 * memory efficiency: add another representation for structs which use
2420 natural alignment for fields and do not have any comptime fields. this
2521 will save 16 bytes per struct field in the compilation.
test/behavior/type_info.zig+1-2
......@@ -306,8 +306,7 @@ test "type info: function type info" {
306306fn testFunction() !void {
307307 const fn_info = @typeInfo(@TypeOf(foo));
308308 try expect(fn_info == .Fn);
309 // TODO Fix this before merging the branch
310 //try expect(fn_info.Fn.alignment > 0);
309 try expect(fn_info.Fn.alignment > 0);
311310 try expect(fn_info.Fn.calling_convention == .C);
312311 try expect(!fn_info.Fn.is_generic);
313312 try expect(fn_info.Fn.args.len == 2);