diff --git a/tests/arc/tarcmisc.nim b/tests/arc/tarcmisc.nim index 56aa3ec3b3..51c80c3484 100644 --- a/tests/arc/tarcmisc.nim +++ b/tests/arc/tarcmisc.nim @@ -257,3 +257,10 @@ echo "new line before - ", newline newline.insert(indent, 0) echo "new line after - ", newline + +# bug #14480 +proc hello(): int = + result = 42 + +var leaves {.global.} = hello() +doAssert leaves == 42