summaryrefslogtreecommitdiff
path: root/tests/c
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-03-09 17:09:09 -0300
committerGabriel Schneider <[email protected]>2026-06-08 23:05:18 -0300
commit4c12cb8aa39035c6ece5efad0971c6de4c2898fe (patch)
tree8a24e4dfa8941f9f407cf1e893a9374ca507e4a9 /tests/c
parent80ba1db819a80e784a488d6d660a890e14b19282 (diff)
downloadcodenomicon-4c12cb8aa39035c6ece5efad0971c6de4c2898fe.tar.gz
codenomicon-4c12cb8aa39035c6ece5efad0971c6de4c2898fe.zip
some changes to build.zig
Diffstat (limited to 'tests/c')
-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;
}