test-suite/bugs/bug_4710.v
raw| 1 | Require Corelib.extraction.Extraction. |
| 2 | |
| 3 | Set Primitive Projections. |
| 4 | Record Foo' := Foo { foo : nat }. |
| 5 | Extraction foo. |
| 6 | Record Foo2 (a : nat) := Foo2c { foo2p : nat; foo2b : bool }. |
| 7 | Extraction foo2p. |
| 8 | |
| 9 | Definition bla (x : Foo2 0) := foo2p _ x. |
| 10 | Extraction bla. |
| 11 | |
| 12 | Definition bla' (a : nat) (x : Foo2 a) := foo2b _ x. |
| 13 | Extraction bla'. |
| 14 | |
| 15 | Extraction TestCompile foo foo2p bla bla'. |