4 * This is a regression test for a bug in LLVM, fixed in upstream r179587,
5 * where the switch instructions generated for destructuring enums
6 * represented with nullable pointers could be misoptimized in some cases.
9 enum List
<X
> { Nil, Cons(X, Box<List<X>>) }
11 match List
::Cons(10, Box
::new(List
::Nil
)) {
12 List
::Cons(10, _
) => {}