Skip to content

Instantly share code, notes, and snippets.

@syoyo
Created February 13, 2009 17:23
Show Gist options
  • Save syoyo/64017 to your computer and use it in GitHub Desktop.
Save syoyo/64017 to your computer and use it in GitHub Desktop.
/* --- main.c --- */
int func() {
printf("muda\n");
}
int main() {
// JIT compile muda.c and execute dora() here.
}
/* --- muda.c --- */
static int func();
int dora() {
// Expects muda.c:func() will be called(), but JIT engine resolves func()
// as main.c:func(), which results in segfault.
func();
}
int func() {
printf("muda muda muda\n");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment