test219
auto test219 =
q{--- test219
// Assigning struct member array
struct S {
u8** ptr;
}
struct App {
u8*[1] validationLayers;
void init() {
validationLayers[0] = "VK_LAYER_KHRONOS_validation"; // here
}
S get() {
return S(validationLayers.ptr); // also test access via .ptr
}
}
S run() {
App app;
app.init;
return app.get();
}
};
tests passing
functionsvariables