| 1 |
(* f1 was renamed into Coq__1.f1 but Coq__1 was not defined *) |
| 2 |
(* similar to #12813, #16677 *) |
| 3 |
|
| 4 |
Record r : Type := mk { f1 : unit -> unit; f2: unit -> unit }. |
| 5 |
Set Primitive Projections. |
| 6 |
Record r' : Type := mk' { f1' : unit -> unit; f2': unit -> unit }. |
| 7 |
Unset Primitive Projections. |
| 8 |
|
| 9 |
Module M. |
| 10 |
Definition f1 (ti:unit) : unit := tt. |
| 11 |
Definition f2 (ti:unit) : unit := tt. |
| 12 |
Definition cf := mk f1 f2. |
| 13 |
|
| 14 |
Definition f1' (ti:unit) : unit := tt. |
| 15 |
Definition f2' (ti:unit) : unit := tt. |
| 16 |
Definition cf' := mk' f1' f2'. |
| 17 |
End M. |
| 18 |
|
| 19 |
Require Import Corelib.extraction.Extraction. |
| 20 |
Recursive Extraction M.cf M.cf'. |
| 21 |
Extraction TestCompile M.cf M.cf'. |