Advertisement
Guest User

Untitled

a guest
Nov 19th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. pub const Foo = extern struct {
  2. type: c_uint
  3. };
  4. pub const Bar = extern struct {
  5. ext: [1](*const Foo)
  6. };
  7.  
  8. pub fn main() void {
  9. const foo0 = Foo { .type = 42 };
  10. var bar = Bar {
  11. .ext = [_](*const Foo){&foo0}
  12. };
  13. switch (bar.ext[0].*.@"type") {
  14.  
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement