mirror of
https://github.com/ziglang/zig.git
synced 2024-12-03 10:28:48 +00:00
behavior tests: re-enable commented out test
Not sure why it was failing, also not sure why it started passing again
This commit is contained in:
parent
731c35f15a
commit
910f67f77b
@ -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.
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user