diff options
Diffstat (limited to 'tests/cpp/tcasts.nim')
-rw-r--r-- | tests/cpp/tcasts.nim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/cpp/tcasts.nim b/tests/cpp/tcasts.nim new file mode 100644 index 000000000..35f06234d --- /dev/null +++ b/tests/cpp/tcasts.nim @@ -0,0 +1,10 @@ +discard """ + cmd: "nim cpp $file" + output: "" +""" + +block: #5979 + var a = 'a' + var p: pointer = cast[pointer](a) + var c = cast[char](p) + doAssert(c == 'a') |