mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
This also includes some compiler and std changes to correct error messages which weren't properly updated before.
18 lines
399 B
C
18 lines
399 B
C
struct empty_struct {};
|
|
|
|
static inline void foo() {
|
|
static struct empty_struct bar = {};
|
|
}
|
|
|
|
// translate-c
|
|
// target=x86_64-linux
|
|
// c_frontend=clang
|
|
//
|
|
// pub const struct_empty_struct = extern struct {};
|
|
// pub fn foo() callconv(.c) void {
|
|
// const bar = struct {
|
|
// var static: struct_empty_struct = @import("std").mem.zeroes(struct_empty_struct);
|
|
// };
|
|
// _ = &bar;
|
|
// }
|