Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pub const Foo = extern struct {
- type: c_uint
- };
- pub const Bar = extern struct {
- ext: [1](*const Foo)
- };
- pub fn main() void {
- const foo0 = Foo { .type = 42 };
- var bar = Bar {
- .ext = [_](*const Foo){&foo0}
- };
- switch (bar.ext[0].*.@"type") {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement