summary refs log tree commit diff stats
path: root/tests/vm/tcastnil.nim
diff options
context:
space:
mode:
authorAndrey R (cooldome) <ariabushenko@gmail.com>2020-11-17 18:54:33 +0000
committerAndrey R (cooldome) <ariabushenko@gmail.com>2020-11-17 18:54:33 +0000
commit632af8afad92594da050a5f7fd784ea111c3cc54 (patch)
treebd6e2eb89f809bd8270c25e39b39672519b4a5a9 /tests/vm/tcastnil.nim
parent1663ad77e3398fec0b5d6b00516f91565ce12cce (diff)
downloadNim-632af8afad92594da050a5f7fd784ea111c3cc54.tar.gz
Revert "follow #16009 VM supports cast nil to ptr (#16012)"
This reverts commit fec19c980e36e62747eb119f0740cb785e858ac3.
Diffstat (limited to 'tests/vm/tcastnil.nim')
-rw-r--r--tests/vm/tcastnil.nim30
1 files changed, 0 insertions, 30 deletions
diff --git a/tests/vm/tcastnil.nim b/tests/vm/tcastnil.nim
deleted file mode 100644
index 5a4684f95..000000000
--- a/tests/vm/tcastnil.nim
+++ /dev/null
@@ -1,30 +0,0 @@
-discard """
-  nimout: '''nil
-nil
-nil
-nil
-nil
-'''
-"""
-
-block:
-  static:
-    let a = cast[pointer](nil)
-    echo a.repr
-
-block:
-  static:
-    echo cast[ptr int](nil).repr
-
-block:
-  const str = cast[ptr int](nil)
-  static:
-    echo str.repr
-
-block:
-  static:
-    echo cast[ptr int](nil).repr
-
-block:
-  static:
-    echo cast[RootRef](nil).repr