stage2: Reference to void constants

Closes #7567
This commit is contained in:
David Gonzalez Martin 2022-08-25 21:17:20 +02:00 committed by Andrew Kelley
parent aa4544963c
commit d6bb9af18d

View file

@ -45,3 +45,9 @@ test "void array as a local variable initializer" {
var x = [_]void{{}} ** 1004;
_ = x[0];
}
const void_constant = {};
test "reference to void constants" {
var a = void_constant;
_ = a;
}