diff --git a/test/fixedbugs/issue9608.dir/issue9608.go b/test/fixedbugs/issue9608.dir/issue9608.go index 56b52cc6065..ca82ded4cd0 100644 --- a/test/fixedbugs/issue9608.dir/issue9608.go +++ b/test/fixedbugs/issue9608.dir/issue9608.go @@ -67,6 +67,15 @@ func init() { case true: fail() } + + // Test dead code elimination in large ranges. + switch 5 { + case 3, 4, 5, 6, 7: + case 0, 1, 2: + fail() + default: + fail() + } } func main() {