diff options
| author | LLLL Colonq <llll@colonq> | 2026-07-09 23:51:55 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2026-07-09 23:51:55 -0400 |
| commit | 2bdcaf319b1d74ffbaccf08a58336f804761beab (patch) | |
| tree | c21de6df74ec79b5574ad2b89fcc275d10847802 /pit/test/gc.pit | |
Refactor into monorepo
Diffstat (limited to 'pit/test/gc.pit')
| -rw-r--r-- | pit/test/gc.pit | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pit/test/gc.pit b/pit/test/gc.pit new file mode 100644 index 0000000..28eed50 --- /dev/null +++ b/pit/test/gc.pit @@ -0,0 +1,13 @@ +(diagnostics!) +(setq! foo (cons 1 2)) +(setq! bar (cons foo 3)) +(setq! baz (cons bar foo)) +(diagnostics!) +(print! foo) +(setcar! foo baz) +(print! (cdr (car (car foo)))) +(diagnostics!) +(setq! foo nil) +(setq! bar nil) +(setq! baz nil) +(diagnostics!) |
