| author | |
| committer | |
| log | 910f67f77b8d58c812980e53bf59052139912985 |
| tree | 6b3874b2b7f758deb7000f45e9b33f2bab3d7d1b |
| parent | 731c35f15a1469c9523b71476f1e069d5bcfd979 |
Not sure why it was failing, also not sure why it started passing again2 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 calls | 16 | * 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? |
| 18 | 18 | ||
| 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 use | 19 | * memory efficiency: add another representation for structs which use |
| 24 | natural alignment for fields and do not have any comptime fields. this | 20 | 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" { |
| 306 | fn testFunction() !void { | 306 | fn 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 branch | 309 | 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); |