diff options
author | flywind <xzsflywind@gmail.com> | 2021-04-05 04:47:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-04 13:47:28 -0700 |
commit | 70a30317f7b0a5711e248e0653b50d1c057bd16b (patch) | |
tree | 80c3b1f52264cabe83c0ba28627a0b8d89f09ad5 /tests/pragmas | |
parent | f02e159b56aaa63713991c0a7f8e7125e91c832e (diff) | |
download | Nim-70a30317f7b0a5711e248e0653b50d1c057bd16b.tar.gz |
fix #16693: testament spec nimout too lax (#16698)
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
Diffstat (limited to 'tests/pragmas')
-rw-r--r-- | tests/pragmas/thintprocessing.nim | 18 | ||||
-rw-r--r-- | tests/pragmas/twarning_off.nim | 2 |
2 files changed, 18 insertions, 2 deletions
diff --git a/tests/pragmas/thintprocessing.nim b/tests/pragmas/thintprocessing.nim new file mode 100644 index 000000000..c608bc6e4 --- /dev/null +++ b/tests/pragmas/thintprocessing.nim @@ -0,0 +1,18 @@ +discard """ + disabled: windows + matrix: "--hint:processing" + 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" diff --git a/tests/pragmas/twarning_off.nim b/tests/pragmas/twarning_off.nim index bada2999b..ccf07b9c4 100644 --- a/tests/pragmas/twarning_off.nim +++ b/tests/pragmas/twarning_off.nim @@ -1,8 +1,6 @@ discard """ - matrix: "--hint:processing" nimout: ''' compile start -.. warn_module.nim(6, 6) Hint: 'test' is declared but not used [XDeclaredButNotUsed] compile end ''' |