master
1pub export fn entry1() void {
2 const x: i32 = 0;
3 switch (x) {
4 6...1 => {},
5 else => unreachable,
6 }
7}
8pub export fn entr2() void {
9 const x: i32 = 0;
10 switch (x) {
11 -1...-5 => {},
12 else => unreachable,
13 }
14}
15
16// error
17//
18// :4:10: error: range start value is greater than the end value
19// :11:11: error: range start value is greater than the end value