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

#write test.zig {
export fn entry0() usize {
    return @sizeOf(@TypeOf(null));
}
export fn entry1() usize {
    return @sizeOf(comptime_int);
}
export fn entry2() usize {
    return @sizeOf(noreturn);
}
const S3 = struct { a: u32, b: comptime_int };
export fn entry3() usize {
    return @sizeOf(S3);
}
const S4 = struct { a: u32, b: noreturn };
export fn entry4() usize {
    return @sizeOf(S4);
}
export fn entry5() usize {
    return @sizeOf([1]fn () void);
}
#}
#update
#check errors {
test.zig:2:20: error: no size available for comptime-only type '@TypeOf(null)'
test.zig:5:20: error: no size available for comptime-only type 'comptime_int'
test.zig:8:20: error: no size available for uninstantiable type 'noreturn'
test.zig:12:20: error: no size available for comptime-only type 'test.S3'
test.zig:10:12: note: struct declared here
test.zig:16:20: error: no size available for uninstantiable type 'test.S4'
test.zig:14:12: note: struct declared here
test.zig:19:20: error: no size available for comptime-only type '[1]fn () void'
#}
