diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/vm/tcastnil.nim | 30 |
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 |