test59
auto test59 =
q{--- test59
// Test dot operator on dereference and member expressions
struct SDL_KeyboardEvent {
u32 type;
u32 timestamp;
SDL_Keysym keysym;
}
struct SDL_Keysym {
u32 scancode;
u32 sym;
}
void run(SDL_KeyboardEvent* key) {
if ((*key).keysym.scancode == 1) {
(*key).keysym.sym = 42;
}
}
};
tests passing
functionsvariables