diff options
| author | Gabriel Schneider <[email protected]> | 2026-03-09 17:09:09 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-06-08 23:05:18 -0300 |
| commit | 4c12cb8aa39035c6ece5efad0971c6de4c2898fe (patch) | |
| tree | 8a24e4dfa8941f9f407cf1e893a9374ca507e4a9 /tests | |
| parent | 80ba1db819a80e784a488d6d660a890e14b19282 (diff) | |
| download | codenomicon-4c12cb8aa39035c6ece5efad0971c6de4c2898fe.tar.gz codenomicon-4c12cb8aa39035c6ece5efad0971c6de4c2898fe.zip | |
some changes to build.zig
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; } |
