diff options
Diffstat (limited to 'tests/pragmas/twarning_off.nim')
-rw-r--r-- | tests/pragmas/twarning_off.nim | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/pragmas/twarning_off.nim b/tests/pragmas/twarning_off.nim new file mode 100644 index 000000000..ccf07b9c4 --- /dev/null +++ b/tests/pragmas/twarning_off.nim @@ -0,0 +1,15 @@ +discard """ + nimout: ''' +compile start +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" |