diff options
Diffstat (limited to 'tests/gc/tstandalone.nim')
-rw-r--r-- | tests/gc/tstandalone.nim | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/gc/tstandalone.nim b/tests/gc/tstandalone.nim new file mode 100644 index 000000000..41dad9ba4 --- /dev/null +++ b/tests/gc/tstandalone.nim @@ -0,0 +1,14 @@ +discard """ + matrix: "--os:standalone --gc:none" + exitcode: 1 + output: "value out of range" +""" + +type + rangeType = range[0..1] + +var + r: rangeType = 0 + i = 2 + +r = rangeType(i) |