summary refs log tree commit diff stats
path: root/tests/pragmas/thintprocessing.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pragmas/thintprocessing.nim')
-rw-r--r--tests/pragmas/thintprocessing.nim18
1 files changed, 18 insertions, 0 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"