aboutsummaryrefslogtreecommitdiffhomepage
path: root/test-suite/success/Case18.v
diff options
context:
space:
mode:
authorGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2006-01-11 19:46:51 +0000
committerGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2006-01-11 19:46:51 +0000
commitd6c9c6356c0c995366d18482a0797ea69e6c2710 (patch)
treec1fe37409a1c0feb81b55cf8ea6ba3757e82fdd9 /test-suite/success/Case18.v
parent83e16708ab8e6a8aaaeb1389be646c28271d40fe (diff)
Test or-patterns
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@7848 85f007b7-540e-0410-9357-904b9bb8a0f7
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 000000000..a57fe4131
--- /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) *)
+