zig

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

test_empty_block.zig (218B) - Raw


      1 const std = @import("std");
      2 const expect = std.testing.expect;
      3 
      4 test {
      5     const a = {};
      6     const b = void{};
      7     try expect(@TypeOf(a) == void);
      8     try expect(@TypeOf(b) == void);
      9     try expect(a == b);
     10 }
     11 
     12 // test