From 4c12cb8aa39035c6ece5efad0971c6de4c2898fe Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Mon, 9 Mar 2026 17:09:09 -0300 Subject: some changes to build.zig --- tests/c/a.out | Bin 15904 -> 0 bytes tests/c/hello-world.c | 10 ++++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) delete mode 100755 tests/c/a.out (limited to 'tests') diff --git a/tests/c/a.out b/tests/c/a.out deleted file mode 100755 index ef80bc7..0000000 Binary files a/tests/c/a.out and /dev/null 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 +#include 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; } -- cgit v1.3