summaryrefslogtreecommitdiff
path: root/test-suite/success/If.v
diff options
context:
space:
mode:
Diffstat (limited to 'test-suite/success/If.v')
-rw-r--r--test-suite/success/If.v7
1 files changed, 7 insertions, 0 deletions
diff --git a/test-suite/success/If.v b/test-suite/success/If.v
new file mode 100644
index 00000000..b7f06dcf
--- /dev/null
+++ b/test-suite/success/If.v
@@ -0,0 +1,7 @@
+(* Check correct use of if-then-else predicate annotation (cf bug 690) *)
+
+Check fun b : bool =>
+ if b as b0 return (if b0 then b0 = true else b0 = false)
+ then refl_equal true
+ else refl_equal false.
+