diff options
author | Danil Yarantsev <tiberiumk12@gmail.com> | 2020-07-22 10:52:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-22 09:52:38 +0200 |
commit | f25454d5c6b455d95aa526b57678ec8494ac0e36 (patch) | |
tree | cc9b9b43b0fb215218e06007a9fb6712062b3ec1 /tests/arc/tarcmisc.nim | |
parent | 503c5e0520779af87dc6c42da7c9d1dbd2e8f8e1 (diff) | |
download | Nim-f25454d5c6b455d95aa526b57678ec8494ac0e36.tar.gz |
Add a testcase for #14480. Fixes #14480 (#15037)
Diffstat (limited to 'tests/arc/tarcmisc.nim')
-rw-r--r-- | tests/arc/tarcmisc.nim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/arc/tarcmisc.nim b/tests/arc/tarcmisc.nim index 56aa3ec3b..51c80c348 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 |