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 @@...@@ -16,10 +16,6 @@
16 * AstGen: add result location pointers to function calls16 * AstGen: add result location pointers to function calls
17 * nested function decl: how to refer to params?17 * 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
23 * memory efficiency: add another representation for structs which use19 * memory efficiency: add another representation for structs which use
24 natural alignment for fields and do not have any comptime fields. this20 natural alignment for fields and do not have any comptime fields. this
25 will save 16 bytes per struct field in the compilation.21 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" {...@@ -306,8 +306,7 @@ test "type info: function type info" {
306fn testFunction() !void {306fn testFunction() !void {
307 const fn_info = @typeInfo(@TypeOf(foo));307 const fn_info = @typeInfo(@TypeOf(foo));
308 try expect(fn_info == .Fn);308 try expect(fn_info == .Fn);
309 // TODO Fix this before merging the branch309 try expect(fn_info.Fn.alignment > 0);
310 //try expect(fn_info.Fn.alignment > 0);
311 try expect(fn_info.Fn.calling_convention == .C);310 try expect(fn_info.Fn.calling_convention == .C);
312 try expect(!fn_info.Fn.is_generic);311 try expect(!fn_info.Fn.is_generic);
313 try expect(fn_info.Fn.args.len == 2);312 try expect(fn_info.Fn.args.len == 2);