summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/c/a.outbin15904 -> 0 bytes
-rw-r--r--tests/c/hello-world.c10
2 files changed, 8 insertions, 2 deletions
diff --git a/tests/c/a.out b/tests/c/a.out
deleted file mode 100755
index ef80bc7..0000000
--- a/tests/c/a.out
+++ /dev/null
Binary files differ
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;
}