aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorFrédéric Besson2019-09-24 15:30:13 +0200
committerFrédéric Besson2019-09-24 15:30:13 +0200
commit092fa59dd892ea99ee17cae03da9dffe5ab3007f (patch)
tree559a5d11ff9ce849619564f2e03ee4e0e7d006bf /test-suite
parent90553b5ca20f2acc9803baf0cf487eb34b6c8f12 (diff)
parente7b83e2a07fffaba0b19c62ef1a02c40d6ef603a (diff)
Merge PR #10774: Make `zify` does work for `Z.to_N`
Reviewed-by: Zimmi48 Reviewed-by: fajb
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/micromega/bug_9162.v8
1 files changed, 8 insertions, 0 deletions
diff --git a/test-suite/micromega/bug_9162.v b/test-suite/micromega/bug_9162.v
new file mode 100644
index 0000000000..4aedf57faf
--- /dev/null
+++ b/test-suite/micromega/bug_9162.v
@@ -0,0 +1,8 @@
+Require Import ZArith Lia.
+Local Open Scope Z_scope.
+
+Goal Z.of_N (Z.to_N 0) = 0.
+Proof. lia. Qed.
+
+Goal forall q, (Z.of_N (Z.to_N 0) = 0 -> q = 0) -> Z.of_N (Z.to_N 0) = q.
+Proof. lia. Qed.