diff options
Diffstat (limited to 'tests/tuples/t12892.nim')
-rw-r--r-- | tests/tuples/t12892.nim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/tuples/t12892.nim b/tests/tuples/t12892.nim new file mode 100644 index 000000000..d69e99c7f --- /dev/null +++ b/tests/tuples/t12892.nim @@ -0,0 +1,8 @@ +discard """ + disabled: i386 +""" + +template works[T](): auto = T.high - 1 +template breaks[T](): auto = (T.high - 1, true) +doAssert $works[uint]() == "18446744073709551614" +doAssert $breaks[uint]() == "(18446744073709551614, true)" |