diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-10-18 22:13:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-18 22:13:24 +0200 |
commit | 832b0a0232e610c1935aaf6ce0b45f69199f8a19 (patch) | |
tree | 93d19bacdd9ee1f407d7589858caaf0721603548 /tests | |
parent | 6b157e5f73ad7df0e397f7890df5c263cf518dba (diff) | |
download | Nim-832b0a0232e610c1935aaf6ce0b45f69199f8a19.tar.gz |
fixes #12420 [backport] (#12456)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/modules/a/utils.nim | 2 | ||||
-rw-r--r-- | tests/modules/b/utils.nim | 2 | ||||
-rw-r--r-- | tests/modules/tutils_ab.nim | 5 |
3 files changed, 9 insertions, 0 deletions
diff --git a/tests/modules/a/utils.nim b/tests/modules/a/utils.nim new file mode 100644 index 000000000..f37abfb93 --- /dev/null +++ b/tests/modules/a/utils.nim @@ -0,0 +1,2 @@ +proc burnMem*(a: int) = + discard diff --git a/tests/modules/b/utils.nim b/tests/modules/b/utils.nim new file mode 100644 index 000000000..e343385f5 --- /dev/null +++ b/tests/modules/b/utils.nim @@ -0,0 +1,2 @@ +# module b/utils.nim +let x* = 10 diff --git a/tests/modules/tutils_ab.nim b/tests/modules/tutils_ab.nim new file mode 100644 index 000000000..25bd08f3c --- /dev/null +++ b/tests/modules/tutils_ab.nim @@ -0,0 +1,5 @@ +import a/utils as autils, b/utils + +# bug #12420 + +burnMem(x) |