tests/test_detcheck.v
raw| 1 | From elpi Require Import elpi. |
| 2 | |
| 3 | Elpi Command test. |
| 4 | Elpi Db foo lp:{{/*(*/ |
| 5 | pred test o:pstring. |
| 6 | /*)*/}}. |
| 7 | Elpi File buggy_inline lp:{{/*(*/ |
| 8 | kind f type -> type. |
| 9 | kind s type. |
| 10 | typeabbrev pstring (f s). |
| 11 | /*)*/}}. |
| 12 | Fail Elpi Accumulate foo File buggy_inline. |
| 13 | (* Elpi Accumulate Db foo. |
| 14 | Elpi Query lp:{{/*(*/ |
| 15 | coq.string->pstring "x" Primx, |
| 16 | X = test Primx, |
| 17 | coq.elpi.accumulate _ "foo" (clause _ _ X). |
| 18 | /*)*/}}. *) |