#zig build-obj {
--name test -fno-emit-bin
-Mroot=test.zig
#}

#write test.zig {
const x: Foo = .{};
const y: Foo = .{};

export fn a() void {
    _ = x > y;
}

export fn b() void {
    _ = x < y;
}

export fn c() void {
    _ = x >= y;
}
export fn d() void {
    _ = x <= y;
}

const Foo = packed struct {
    a: u4 = 10,
    b: u4 = 5,
};
#}
#update
#check errors {
test.zig:5:11: error: operator > not allowed for type 'test.Foo'
test.zig:19:20: note: struct declared here
test.zig:9:11: error: operator < not allowed for type 'test.Foo'
test.zig:19:20: note: struct declared here
test.zig:13:11: error: operator >= not allowed for type 'test.Foo'
test.zig:19:20: note: struct declared here
test.zig:16:11: error: operator <= not allowed for type 'test.Foo'
test.zig:19:20: note: struct declared here
#}
