summaryrefslogtreecommitdiff
path: root/test-suite/output/ZSyntax.v
blob: 289a1e3f498495bfc1bebe2c3020596391a82d38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Require Import ZArith.
Check 32%Z.
Check (fun f : nat -> Z => (f 0%nat + 0)%Z).
Check (fun x : positive => Zpos (xO x)).
Check (fun x : positive => (Zpos x + 1)%Z).
Check (fun x : positive => Zpos x).
Check (fun x : positive => Zneg (xO x)).
Check (fun x : positive => (Zpos (xO x) + 0)%Z).
Check (fun x : positive => (- Zpos (xO x))%Z).
Check (fun x : positive => (- Zpos (xO x) + 0)%Z).
Check (Z_of_nat 0 + 1)%Z.
Check (0 + Z_of_nat (0 + 0))%Z.
Check (Z_of_nat 0 = 0%Z).

(* Submitted by Pierre Casteran *)
Require Import Arith.
Check (0 + Z_of_nat 11)%Z.