diff options
author | cooldome <cdome@bk.ru> | 2019-11-07 13:47:26 +0000 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-11-07 14:47:26 +0100 |
commit | e1b1759439afed3d5af1207044f81d706af8b522 (patch) | |
tree | 779cb946ee400befc42742e32e366dd7c7f65020 /tests/pragmas/twarning_off.nim | |
parent | 94675c2378aed37a76899b4ab9cae9962e3d9542 (diff) | |
download | Nim-e1b1759439afed3d5af1207044f81d706af8b522.tar.gz |
fixes #5050; fixes #11826 (#12606) [backport]
Diffstat (limited to 'tests/pragmas/twarning_off.nim')
-rw-r--r-- | tests/pragmas/twarning_off.nim | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/pragmas/twarning_off.nim b/tests/pragmas/twarning_off.nim new file mode 100644 index 000000000..f1de9076f --- /dev/null +++ b/tests/pragmas/twarning_off.nim @@ -0,0 +1,17 @@ +discard """ + nimout: ''' +compile start +Hint: warn_module [Processing] +Hint: hashes [Processing] +warn_module.nim(6, 6) Hint: 'test' is declared but not used [XDeclaredButNotUsed] +compile end +''' +""" + +static: + echo "compile start" + +import warn_module + +static: + echo "compile end" |