summary refs log tree commit diff stats
path: root/tests/arc/t16558.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/arc/t16558.nim')
-rw-r--r--tests/arc/t16558.nim9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/arc/t16558.nim b/tests/arc/t16558.nim
new file mode 100644
index 000000000..0dbe02b33
--- /dev/null
+++ b/tests/arc/t16558.nim
@@ -0,0 +1,9 @@
+discard """
+  matrix: "--gc:arc"
+  errormsg: "expression cannot be cast to 'int'"
+"""
+
+block: # bug #16558
+  var value = "hi there"
+  var keepInt: int
+  keepInt = cast[int](value)