kit

kit
git clone https://git.ryansepassi.com/git/kit.git
Log | Files | Refs | README

86_address_of_field.toy (186B)


      1 record Cell2 {
      2   value: i64,
      3 }
      4 
      5 fn __user_main(): i64 {
      6   var c: Cell2 = Cell2 { value: 42 };
      7   let p: *i64 = &c.value;
      8   return p[0];
      9 }
     10 
     11 fn main(): i32 { return __user_main() as i32; }