summary refs log tree commit diff stats
path: root/tests/cpp/tenum_set.nim
blob: 6afed722f434c6883d48876e78b4cdfd4587c1fa (plain) (blame)
1
2
3
4
5
6
7
8
9
discard """
targets: "cpp"
output: "{A, B, C}"
"""

type Enum {.importcpp: "namespaced::Enum", header: "enum.hpp".} = enum A, B, C

var vals = {low(Enum) .. high(Enum)}
echo vals