diff options
| author | Pierre-Marie Pédrot | 2020-11-10 13:35:35 +0100 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2020-11-12 10:58:46 +0100 |
| commit | 332bb8c5199eb264d09d2810546170e0654f4527 (patch) | |
| tree | 41898ed8df38fa19b81079e4d0fd40004711dd42 | |
| parent | aa6d64c7de5d75f1a2625a3ec99c3efc699c5440 (diff) | |
Add the test as a misc script.
I left the other test as a v file since it might become relevant when the
corresponding Qed bug is fixed.
| -rwxr-xr-x | test-suite/misc/13330.sh | 10 | ||||
| -rw-r--r-- | test-suite/misc/13330/bug_13330.v | 16 |
2 files changed, 26 insertions, 0 deletions
diff --git a/test-suite/misc/13330.sh b/test-suite/misc/13330.sh new file mode 100755 index 0000000000..7340559432 --- /dev/null +++ b/test-suite/misc/13330.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +$coqc misc/13330/bug_13330.v +R=$? + +if [ $R == 0 ]; then + exit 1 +else + exit 0 +fi diff --git a/test-suite/misc/13330/bug_13330.v b/test-suite/misc/13330/bug_13330.v new file mode 100644 index 0000000000..acf6e80c48 --- /dev/null +++ b/test-suite/misc/13330/bug_13330.v @@ -0,0 +1,16 @@ +Polymorphic Inductive path {A : Type} (x : A) : A -> Type := + refl : path x x. + +Goal False. +Proof. +simple refine (let H : False := _ in _). ++ exact_no_check I. ++ assert (path true false -> path false true). + (** Create a dummy polymorphic side-effect *) + { + intro IHn. + rewrite IHn. + reflexivity. + } + exact H. +Qed. |
