This commit is contained in:
Yuriy Glukhov
2017-11-19 03:32:39 +02:00
committed by Andreas Rumpf
parent 963184fea6
commit e1ed34627f
2 changed files with 18 additions and 2 deletions

10
tests/cpp/tcasts.nim Normal file
View File

@@ -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')