summary refs log tree commit diff stats
path: root/tests/pragmas/tpushnotes.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pragmas/tpushnotes.nim')
-rw-r--r--tests/pragmas/tpushnotes.nim13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/pragmas/tpushnotes.nim b/tests/pragmas/tpushnotes.nim
new file mode 100644
index 000000000..27ba0bec4
--- /dev/null
+++ b/tests/pragmas/tpushnotes.nim
@@ -0,0 +1,13 @@
+discard """
+  matrix: "--warningAsError:HoleEnumConv"
+"""
+
+type
+  e = enum
+    a = 0
+    b = 2
+
+var i: int
+{.push warning[HoleEnumConv]:off.}
+discard i.e
+{.pop.}