test-suite/bugs/bug_5460.v
raw| 1 | (* Bugs in computing dependencies in pattern-matching compilation *) |
| 2 | |
| 3 | Inductive A := a1 | a2. |
| 4 | Inductive B := b. |
| 5 | Inductive C : A -> Type := c : C a1 | d : C a2. |
| 6 | Definition P (x : A) (y : C x) (z : B) : nat := |
| 7 | match z, x, y with |
| 8 | | b, a1, c => 0 |
| 9 | | b, a2, d => 0 |
| 10 | | _, _, _ => 1 |
| 11 | end. |