mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 03:44:46 +01:00
behavior: auto structs with zero fields are not extern types
This commit is contained in:
parent
245070bdad
commit
2b60d4acd8
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue