~ubuntu-branches/ubuntu/wily/coq-doc/wily

« back to all changes in this revision

Viewing changes to test-suite/success/Case18.v

  • Committer: Bazaar Package Importer
  • Author(s): Stéphane Glondu, Stéphane Glondu, Samuel Mimram
  • Date: 2010-01-07 22:50:39 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100107225039-n3cq82589u0qt0s2
Tags: 8.2pl1-1
[ Stéphane Glondu ]
* New upstream release (Closes: #563669)
  - remove patches
* Packaging overhaul:
  - use git, advertise it in Vcs-* fields of debian/control
  - use debhelper 7 and dh with override
  - use source format 3.0 (quilt)
* debian/control:
  - set Maintainer to d-o-m, set Uploaders to Sam and myself
  - add Homepage field
  - bump Standards-Version to 3.8.3
* Register PDF documentation into doc-base
* Add debian/watch
* Update debian/copyright

[ Samuel Mimram ]
* Change coq-doc's description to mention that it provides documentation in
  pdf format, not postscript, closes: #543545.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
(* Check or-patterns *)
 
2
 
 
3
Definition g x :=
 
4
  match x with ((((1 as x),_) | (_,x)), (_,(2 as y))|(y,_)) => (x,y) end.
 
5
 
 
6
Check (refl_equal _ : g ((1,2),(3,4)) = (1,3)).
 
7
 
 
8
Check (refl_equal _ : g ((1,4),(3,2)) = (1,2)).
 
9
 
 
10
Fixpoint max (n m:nat) {struct m} : nat :=
 
11
  match  n, m with
 
12
  | S n', S m' => S (max n' m')
 
13
  | 0, p | p, 0 => p
 
14
  end.
 
15
 
 
16
(* Check bug #1477 *)
 
17
 
 
18
Inductive I : Set :=
 
19
  | A : nat -> nat -> I
 
20
  | B : nat -> nat -> I.
 
21
 
 
22
Definition foo (x:I) : nat :=
 
23
  match x with
 
24
    | A a b | B b a => S b
 
25
  end.
 
26