diff options
| author | Baitinq <[email protected]> | 2025-06-11 00:16:17 +0200 |
|---|---|---|
| committer | Baitinq <[email protected]> | 2025-06-11 00:16:17 +0200 |
| commit | fa92a157746ae17f295d31b7a047dfeb99624a13 (patch) | |
| tree | 71e469e67a70df15542d873ebe223654def6111b /examples/17.src | |
| parent | stdlib: Remove println (diff) | |
| download | interpreter-fa92a157746ae17f295d31b7a047dfeb99624a13.tar.gz interpreter-fa92a157746ae17f295d31b7a047dfeb99624a13.tar.bz2 interpreter-fa92a157746ae17f295d31b7a047dfeb99624a13.zip | |
Diffstat (limited to 'examples/17.src')
| -rw-r--r-- | examples/17.src | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/examples/17.src b/examples/17.src deleted file mode 100644 index 93a313f..0000000 --- a/examples/17.src +++ /dev/null @@ -1,24 +0,0 @@ -extern malloc = (i64) => *i64; -extern free = (*i64) => void; - -import "!stdlib.src"; - -let main = () => i64 { - let x = malloc(8); - *x = 10; - printf("%p\n", x); - printf("%d\n", *x); - free(x); - return 0; -}; - -/* - -Expected stdout: - -${SOMEPOINTER} -10 - -Expected return: 0 - -*/ |