diff --git a/BRANCH_TODO b/BRANCH_TODO index 9860335c482fbfe76c7e489425cbce54aff895f1..a3a3aeedfc4fded1e125dcafb9298c00d0dd1b34 100644 --- a/BRANCH_TODO +++ b/BRANCH_TODO @@ -16,10 +16,6 @@ * AstGen: add result location pointers to function calls * nested function decl: how to refer to params? - * fix the commented out behavior test regarding function alignment - - not sure why this happened, it's stage1 code?? - - search the behavior test diff for "TODO" - * memory efficiency: add another representation for structs which use natural alignment for fields and do not have any comptime fields. this will save 16 bytes per struct field in the compilation. diff --git a/test/behavior/type_info.zig b/test/behavior/type_info.zig index 7a0152ae97911786afaa8f43ec829580cd6db700..6e9fbe676d0cfed59e66d0c9ae8c24a55c193293 100644 --- a/test/behavior/type_info.zig +++ b/test/behavior/type_info.zig @@ -306,8 +306,7 @@ test "type info: function type info" { fn testFunction() !void { const fn_info = @typeInfo(@TypeOf(foo)); try expect(fn_info == .Fn); - // TODO Fix this before merging the branch - //try expect(fn_info.Fn.alignment > 0); + try expect(fn_info.Fn.alignment > 0); try expect(fn_info.Fn.calling_convention == .C); try expect(!fn_info.Fn.is_generic); try expect(fn_info.Fn.args.len == 2);