aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorGaëtan Gilbert2020-09-30 11:19:18 +0200
committerGaëtan Gilbert2020-09-30 11:20:17 +0200
commit4cc71d010174abcbeb793df514446fa2ec7d1b29 (patch)
tree16fa3dcef406bf01ee25f8ea714cb5279eff85b8 /test-suite
parent2c802aaf74c83274ae922c59081c01bfc267d31b (diff)
Reimplement Admit Obligations using standard Admitted code
Fix #13109
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/bugs/closed/bug_13109.v24
1 files changed, 24 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/bug_13109.v b/test-suite/bugs/closed/bug_13109.v
new file mode 100644
index 0000000000..76511a44c5
--- /dev/null
+++ b/test-suite/bugs/closed/bug_13109.v
@@ -0,0 +1,24 @@
+Require Import Coq.Program.Tactics.
+
+Set Universe Polymorphism.
+Obligation Tactic := idtac.
+
+Program Definition foo : Type := _.
+Program Definition bar : Type := _.
+Admit Obligations.
+(* Error: Anomaly "Uncaught exception AcyclicGraph.Make(Point).AlreadyDeclared."
+Please report at http://coq.inria.fr/bugs/.
+ *)
+Print foo.
+Print foo_obligation_1.
+Print bar.
+Print bar_obligation_1.
+
+Program Definition baz : Type := _.
+Admit Obligations of baz.
+Print baz.
+Print baz_obligation_1.
+
+Admit Obligations.
+
+Fail Admit Obligations of nobody.