diff options
| author | Hugo Herbelin | 2020-08-24 16:40:58 +0200 |
|---|---|---|
| committer | Hugo Herbelin | 2020-08-24 16:40:58 +0200 |
| commit | d49b9f298e46df177400cae775a1c22879543456 (patch) | |
| tree | 21ea97ea49656ae39807d0d2eea1f6629ab0b0d8 | |
| parent | 188e8f7084b586f2e555a5770d24eec8ebd05d91 (diff) | |
| parent | 81ed30792484b5fb947b8e53f1363574015ce546 (diff) | |
Merge PR #12835: Slightly reorganising the test suite to follow its documentation
Reviewed-by: SkySkimmer
Reviewed-by: herbelin
Reviewed-by: jfehrle
| -rw-r--r-- | test-suite/Makefile | 2 | ||||
| -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 |
8 files changed, 38 insertions, 9 deletions
diff --git a/test-suite/Makefile b/test-suite/Makefile index 28add48b36..5d4e15b985 100644 --- a/test-suite/Makefile +++ b/test-suite/Makefile @@ -222,7 +222,7 @@ report: summary.log # printed for all opened bugs (still active or seems to be closed). # For closed bugs that behave as expected, no message is printed -# All files are assumed to have <# of the bug>.v as a name +# All files are assumed to have bug_<# of the bug>.v as a name # Opened bugs that should not fail $(addsuffix .log,$(wildcard bugs/opened/*.v)): %.v.log: %.v 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. |
