macaw/x86/tests/x64/test-indirect-call.c
2017-09-27 15:54:43 -07:00

17 lines
152 B
C

#include "util.h"
int g = -11;
int (*fptr)(int);
int callee(int x) {
return x * 2;
}
void _start() {
fptr = callee;
g = fptr(g);
EXIT();
}