mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-09 07:08:59 +00:00
parent
aa4544963c
commit
d6bb9af18d
1 changed files with 6 additions and 0 deletions
|
|
@ -45,3 +45,9 @@ test "void array as a local variable initializer" {
|
||||||
var x = [_]void{{}} ** 1004;
|
var x = [_]void{{}} ** 1004;
|
||||||
_ = x[0];
|
_ = x[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const void_constant = {};
|
||||||
|
test "reference to void constants" {
|
||||||
|
var a = void_constant;
|
||||||
|
_ = a;
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue