| author | |
| committer | |
| log | d6bb9af18da6f1e6d4e62a111c69a58c91b21a7e |
| tree | 085e723ef4f3f96f5163c7ecca741917b133e6b0 |
| parent | aa4544963caf4073fb90db396f42ca730febfe7e |
Closes #75671 files changed, 6 insertions(+), 0 deletions(-)
test/behavior/void.zig+6| ... | @@ -45,3 +45,9 @@ test "void array as a local variable initializer" { | ... | @@ -45,3 +45,9 @@ test "void array as a local variable initializer" { |
| 45 | var x = [_]void{{}} ** 1004; | 45 | var x = [_]void{{}} ** 1004; |
| 46 | _ = x[0]; | 46 | _ = x[0]; |
| 47 | } | 47 | } |
| 48 | |||
| 49 | const void_constant = {}; | ||
| 50 | test "reference to void constants" { | ||
| 51 | var a = void_constant; | ||
| 52 | _ = a; | ||
| 53 | } |