diff options
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/c/a.out | bin | 15904 -> 0 bytes | |||
| -rw-r--r-- | tests/c/hello-world.c | 10 |
2 files changed, 8 insertions, 2 deletions
diff --git a/tests/c/a.out b/tests/c/a.out Binary files differdeleted file mode 100755 index ef80bc7..0000000 --- a/tests/c/a.out +++ /dev/null diff --git a/tests/c/hello-world.c b/tests/c/hello-world.c index e0a0dd1..28c18a9 100644 --- a/tests/c/hello-world.c +++ b/tests/c/hello-world.c @@ -1,9 +1,15 @@ #include <stdio.h> +#include <stdlib.h> void a() {} void bcd() {} -int main() { - printf("Heeeello, world! %d\n", 42); +int main(int argc, char **argv) { + int *p = malloc(0x10); + free(p); + + printf("- freed: (%x/%x)\n", p, *p); + printf("- fns: (%x/printf)\n", &printf); + return 0; } |
