mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
26 lines
427 B
C
26 lines
427 B
C
typedef struct Bar Bar;
|
|
typedef struct Foo Foo;
|
|
|
|
struct Foo {
|
|
Foo *a;
|
|
};
|
|
|
|
struct Bar {
|
|
Foo *a;
|
|
};
|
|
|
|
// translate-c
|
|
// c_frontend=clang
|
|
//
|
|
// pub const struct_Foo = extern struct {
|
|
// a: [*c]Foo = @import("std").mem.zeroes([*c]Foo),
|
|
// };
|
|
//
|
|
// pub const Foo = struct_Foo;
|
|
//
|
|
// pub const struct_Bar = extern struct {
|
|
// a: [*c]Foo = @import("std").mem.zeroes([*c]Foo),
|
|
// };
|
|
//
|
|
// pub const Bar = struct_Bar;
|