test189
auto test189 =
q{--- test189
// Call function pointer in member variable
i32 get42(){ return 42; }
struct DispatchDevice {
i32 DestroyDevice() { return vkDestroyDevice(); }
i32 function() vkDestroyDevice = &get42;
}
i32 run() {
DispatchDevice dev;
return dev.DestroyDevice();
}
};
tests passing
functionsvariables