12 lines
174 B
Zig
12 lines
174 B
Zig
|
const S = extern struct {
|
||
|
x: i32,
|
||
|
};
|
||
|
|
||
|
extern fn ret_struct() S {
|
||
|
return S { .x = 0 };
|
||
|
}
|
||
|
|
||
|
test "extern return small struct (bug 1230)" {
|
||
|
const s = ret_struct();
|
||
|
}
|