mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
23 lines
282 B
Nim
23 lines
282 B
Nim
discard """
|
|
cmd: "nim e $file"
|
|
output: '''
|
|
foobar
|
|
nothing
|
|
hallo
|
|
"""
|
|
|
|
# this test ensures that the mode is resetted correctly to repr
|
|
|
|
import macros
|
|
|
|
macro foobar(): void =
|
|
result = newCall(bindSym"echo", newLit("nothing"))
|
|
|
|
echo "foobar"
|
|
|
|
let x = 123
|
|
|
|
foobar()
|
|
|
|
exec "echo hallo"
|