zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

blob df323244 (197B) - Raw


      1 test "missized packed struct" {
      2     const S = packed struct(u32) { a: u16, b: u8 };
      3     _ = S{ .a = 4, .b = 2 };
      4 }
      5 
      6 // test_error=backing integer bit width does not match total bit width of fields