summary refs log tree commit diff stats
path: root/tests/cpp/torc.nim
blob: 7fc474f94d4de3b2c3a71b47d66e4d8b1192969d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
discard """
  targets: "cpp"
  matrix: "--gc:orc"
"""

import std/options

# bug #18410
type
  O = object of RootObj
   val: pointer

proc p(): Option[O] = none(O)

doAssert $p() == "none(O)"