Files
Nim/tests/ic/memptycaller.nim
2026-07-03 15:52:41 +02:00

10 lines
260 B
Nim

# Calls `emptyOwned` from a DIFFERENT module than the one that owns it, so the
# reference at link time must resolve to a definition the owning module emits.
import memptyowned
proc callEmpty*(cond: bool) =
if cond:
emptyOwned()
echo "called ", cond