aboutsummaryrefslogtreecommitdiff
path: root/test-suite/bugs
diff options
context:
space:
mode:
authorMaxime Dénès2017-10-10 10:52:30 +0200
committerMaxime Dénès2017-10-10 10:52:30 +0200
commita2e283c8545f9e7f2951c42892945b027674a665 (patch)
tree5fb5d5946a31f07b83f85eaa9206d9b586ee7b89 /test-suite/bugs
parent77eb48ff814ec92fdaf4c7b61026d642ac2f14a6 (diff)
parentee42eb1e10be8632e277cf8b9ac6ba40ef86372b (diff)
Merge PR #768: Omega and romega know about context definitions (fix old bug 148)
Diffstat (limited to 'test-suite/bugs')
-rw-r--r--test-suite/bugs/closed/148.v26
1 files changed, 26 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/148.v b/test-suite/bugs/closed/148.v
new file mode 100644
index 0000000000..6cafb9f0cd
--- /dev/null
+++ b/test-suite/bugs/closed/148.v
@@ -0,0 +1,26 @@
+(** Omega is now aware of the bodies of context variables
+ (of type Z or nat). *)
+
+Require Import ZArith Omega.
+Open Scope Z.
+
+Goal let x := 3 in x = 3.
+intros.
+omega.
+Qed.
+
+Open Scope nat.
+
+Goal let x := 2 in x = 2.
+intros.
+omega.
+Qed.
+
+(** NB: this could be disabled for compatibility reasons *)
+
+Unset Omega UseLocalDefs.
+
+Goal let x := 4 in x = 4.
+intros.
+Fail omega.
+Abort.