remove 2 duplicated behavior tests from struct_llvm.zig

This commit is contained in:
Andrew Kelley 2021-11-09 16:32:39 -07:00
parent 7afa220f92
commit c77698d69e

View File

@ -53,24 +53,6 @@ const Val = struct {
x: i32,
};
test "struct initializer" {
const val = Val{ .x = 42 };
try expect(val.x == 42);
}
const MemberFnTestFoo = struct {
x: i32,
fn member(foo: MemberFnTestFoo) i32 {
return foo.x;
}
};
test "call member function directly" {
const instance = MemberFnTestFoo{ .x = 1234 };
const result = MemberFnTestFoo.member(instance);
try expect(result == 1234);
}
test "struct point to self" {
var root: Node = undefined;
root.val.x = 1;