Debian Codegraph @

test-suite/bugs/bug_16288.v

raw
1 (* Extraction of primitive projections within a functor were
2 incorrectly referencing themselves *)
3 Module Type Nop. End Nop.
4 Module Empty. End Empty.
5 Module M (N : Nop).
6 Local Set Primitive Projections.
7 Record M_t_NonEmpty elt := { M_m :> list elt }.
8 Record M_t_NonEmpty' X Y := { a : X ; b : Y }.
9 End M.
10 Module M' := M Empty.
11 Require Import Corelib.extraction.Extraction.
12 Require Import Corelib.extraction.ExtrOcamlBasic.
13 Extraction Language OCaml.
14 Recursive Extraction M'.
15 Extraction TestCompile M'.