mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-12 04:09:34 +00:00
8 lines
288 B
Nim
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()
|