test220
auto test220 =
q{--- test220
// slicing of static array bug
struct App {
u8*[1] validationLayers;
void init() {
validationLayers[0] = "VK_LAYER_KHRONOS_validation";
}
u8* get() {
return accessor(validationLayers); // here
}
}
u8* accessor(u8*[] layers) { return layers[0]; }
u8* run() {
App app;
app.init;
return app.get();
}
};
tests passing
functionsvariables