mirror of
https://github.com/ziglang/zig.git
synced 2025-12-16 19:23:08 +00:00
parent
aa4544963c
commit
d6bb9af18d
@ -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…
x
Reference in New Issue
Block a user