Created
February 13, 2009 17:23
-
-
Save syoyo/64017 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* --- 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