diff options
| author | Martin Bodin | 2020-08-11 17:51:05 +0100 |
|---|---|---|
| committer | Martin Bodin | 2020-08-19 12:41:57 +0100 |
| commit | 81ed30792484b5fb947b8e53f1363574015ce546 (patch) | |
| tree | af9d7ba7d35d39e9b51d9ad5f75e4fc685ce5ac5 /test-suite/bugs | |
| parent | e0b8b4684eaf76f897ac708ffddbb8e4977ac754 (diff) | |
Adding the example of bug #2904 into the test suite, and reorganising the test files.
Co-authored-by: Gaƫtan Gilbert <gaetan.gilbert@skyskimmer.net>
Co-authored-by: Hugo Herbelin <Hugo.Herbelin@inria.fr>
Diffstat (limited to 'test-suite/bugs')
| -rw-r--r-- | test-suite/bugs/bug_5996.v | 8 | ||||
| -rw-r--r-- | test-suite/bugs/closed/bug_11140.v (renamed from test-suite/bugs/bug_11140.v) | 0 | ||||
| -rw-r--r-- | test-suite/bugs/closed/bug_4690.v (renamed from test-suite/bugs/bug_4690.v) | 0 | ||||
| -rw-r--r-- | test-suite/bugs/closed/bug_9490.v (renamed from test-suite/bugs/bug_9490.v) | 0 | ||||
| -rw-r--r-- | test-suite/bugs/closed/bug_9532.v (renamed from test-suite/bugs/bug_9532.v) | 0 | ||||
| -rw-r--r-- | test-suite/bugs/opened/bug_2904.v | 18 | ||||
| -rw-r--r-- | test-suite/bugs/opened/bug_5996.v | 19 |
7 files changed, 37 insertions, 8 deletions
diff --git a/test-suite/bugs/bug_5996.v b/test-suite/bugs/bug_5996.v deleted file mode 100644 index c9e3292b48..0000000000 --- a/test-suite/bugs/bug_5996.v +++ /dev/null @@ -1,8 +0,0 @@ -Goal Type. - let c := constr:(prod nat nat) in - let c' := (eval pattern nat in c) in - let c' := lazymatch c' with ?f _ => f end in - let c'' := lazymatch c' with fun x : Set => ?f => constr:(forall x : Type, f) end in - let _ := type of c'' in - exact c''. -Defined. diff --git a/test-suite/bugs/bug_11140.v b/test-suite/bugs/closed/bug_11140.v index ca806ea324..ca806ea324 100644 --- a/test-suite/bugs/bug_11140.v +++ b/test-suite/bugs/closed/bug_11140.v diff --git a/test-suite/bugs/bug_4690.v b/test-suite/bugs/closed/bug_4690.v index f50866a990..f50866a990 100644 --- a/test-suite/bugs/bug_4690.v +++ b/test-suite/bugs/closed/bug_4690.v diff --git a/test-suite/bugs/bug_9490.v b/test-suite/bugs/closed/bug_9490.v index a5def40c49..a5def40c49 100644 --- a/test-suite/bugs/bug_9490.v +++ b/test-suite/bugs/closed/bug_9490.v diff --git a/test-suite/bugs/bug_9532.v b/test-suite/bugs/closed/bug_9532.v index d198d45f2f..d198d45f2f 100644 --- a/test-suite/bugs/bug_9532.v +++ b/test-suite/bugs/closed/bug_9532.v diff --git a/test-suite/bugs/opened/bug_2904.v b/test-suite/bugs/opened/bug_2904.v new file mode 100644 index 0000000000..da30a509ac --- /dev/null +++ b/test-suite/bugs/opened/bug_2904.v @@ -0,0 +1,18 @@ +Module Type S. +Parameter t : Type. +Module M'. +Parameter t : Type. +Definition u := S.t. +End M'. +End S. + +Module M : S. +Definition t := unit. +Module M'. +Definition t := bool. +Definition u := M.t. +End M'. +End M. + +Require Extraction. +Fail Extraction TestCompile M. diff --git a/test-suite/bugs/opened/bug_5996.v b/test-suite/bugs/opened/bug_5996.v new file mode 100644 index 0000000000..2e81a183cd --- /dev/null +++ b/test-suite/bugs/opened/bug_5996.v @@ -0,0 +1,19 @@ +(* Original example *) +Goal Type. + let c := constr:(prod nat nat) in + let c' := (eval pattern nat in c) in + let c' := lazymatch c' with ?f _ => f end in + let c'' := lazymatch c' with fun x : Set => ?f => constr:(forall x : Type, f) end in + exact c''. +Fail Defined. +Abort. + +(* Workaround *) +Goal Type. + let c := constr:(prod nat nat) in + let c' := (eval pattern nat in c) in + let c' := lazymatch c' with ?f _ => f end in + let c'' := lazymatch c' with fun x : Set => ?f => constr:(forall x : Type, f) end in + let _ := type of c'' in + exact c''. +Defined. |
