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

8 lines
288 B
Nim

# Regression: a module-scope `{.emit.}` in an imported module must survive the
# `nim ic` backend reload (see memit.nim). Before the fix the dropped `#define`
# made the generated C fail to compile, so `nim ic` exited non-zero.
import memit
doAssert emitAnswer() == 42
echo emitAnswer()