behavior: auto structs with zero fields are not extern types

This commit is contained in:
Matthew Lugg 2026-02-08 15:22:42 +00:00
parent 245070bdad
commit 2b60d4acd8
No known key found for this signature in database
GPG key ID: 3F5B7DCCBF4AF02E

View file

@ -366,7 +366,7 @@ test "Extern function calls in @TypeOf" {
extern fn s_do_thing([*c]const @This(), b: c_int) c_short;
};
const E = struct {
const E = extern struct {
export fn s_do_thing(a: [*c]const @This(), b: c_int) c_short {
_ = a;
_ = b;