Skip to content

Commit cb1d2bf

Browse files
committed
test
1 parent 834323a commit cb1d2bf

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

apps/derive/tests/test_derive.v

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,3 +168,15 @@ Check Kwi _ (refl_equal 3).
168168
From Coq Require Ascii.
169169

170170
#[only(param2)] derive Ascii.ascii.
171+
172+
(* #407 *)
173+
Definition is_zero (n:nat) := match n with O => true | _ => false end.
174+
derive is_zero.
175+
176+
Inductive toto1 := | Toto1 : forall n, unit -> is_zero n = true -> toto1.
177+
Inductive toto2 := | Toto2 : forall n, is_zero n = true -> unit -> toto2.
178+
Inductive toto3 := | Toto3 : unit -> forall n, is_zero n = true -> toto3.
179+
180+
#[only(param1_trivial)] derive toto1.
181+
#[only(param1_trivial)] derive toto2.
182+
#[only(param1_trivial)] derive toto3.

0 commit comments

Comments
 (0)