From 40f8632178d8418f2492f9b19405621ac70ea671 Mon Sep 17 00:00:00 2001 From: Gaƫtan Gilbert Date: Fri, 28 Aug 2020 12:50:05 +0200 Subject: Make abstract compatible with mangle names Fix #12928 Fix #3146 --- test-suite/bugs/closed/bug_12928.v | 7 +++++++ test-suite/bugs/closed/bug_3146.v | 5 +++++ 2 files changed, 12 insertions(+) create mode 100644 test-suite/bugs/closed/bug_12928.v create mode 100644 test-suite/bugs/closed/bug_3146.v (limited to 'test-suite/bugs') diff --git a/test-suite/bugs/closed/bug_12928.v b/test-suite/bugs/closed/bug_12928.v new file mode 100644 index 0000000000..2f4d1dd16d --- /dev/null +++ b/test-suite/bugs/closed/bug_12928.v @@ -0,0 +1,7 @@ + +Lemma test: forall (x:bool) (x: nat), nat. +Proof. intros y x; abstract (exact x). Qed. + +Set Mangle Names. +Lemma test': forall x : nat, nat. +Proof. intros x. abstract exact x. Qed. diff --git a/test-suite/bugs/closed/bug_3146.v b/test-suite/bugs/closed/bug_3146.v new file mode 100644 index 0000000000..c42e28818a --- /dev/null +++ b/test-suite/bugs/closed/bug_3146.v @@ -0,0 +1,5 @@ +Axiom x : True. +Goal nat -> nat. + intro x. + abstract (exact x). +Qed. -- cgit v1.2.3