From e2669689c46630afd3adb99c496a6895c6c95a15 Mon Sep 17 00:00:00 2001 From: Matthew Lugg Date: Sun, 8 Feb 2026 15:22:42 +0000 Subject: [PATCH] behavior: auto structs with zero fields are not extern types --- test/behavior/sizeof_and_typeof.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/behavior/sizeof_and_typeof.zig b/test/behavior/sizeof_and_typeof.zig index 2fb89bc484bb9ab682c2627800debbe546531b2b..65deede0768638791f5da2cb4b74db82ea6c0caa 100644 --- a/test/behavior/sizeof_and_typeof.zig +++ b/test/behavior/sizeof_and_typeof.zig @@ -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; -- 2.54.0