summaryrefslogtreecommitdiff
path: root/test-suite/success/Case18.v
diff options
context:
space:
mode:
Diffstat (limited to 'test-suite/success/Case18.v')
-rw-r--r--test-suite/success/Case18.v11
1 files changed, 11 insertions, 0 deletions
diff --git a/test-suite/success/Case18.v b/test-suite/success/Case18.v
new file mode 100644
index 00000000..a57fe413
--- /dev/null
+++ b/test-suite/success/Case18.v
@@ -0,0 +1,11 @@
+(* Check or-patterns *)
+
+Definition g x :=
+ match x with ((((1 as x),_) | (_,x)), (_,(2 as y))|(y,_)) => (x,y) end.
+
+Eval compute in (g ((1,2),(3,4))).
+(* (1,3) *)
+
+Eval compute in (g ((1,4),(3,2))).
+(* (1,2) *)
+