aboutsummaryrefslogtreecommitdiff
path: root/tests/example2.v
diff options
context:
space:
mode:
Diffstat (limited to 'tests/example2.v')
-rw-r--r--tests/example2.v15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/example2.v b/tests/example2.v
new file mode 100644
index 0000000000..14a6b68e18
--- /dev/null
+++ b/tests/example2.v
@@ -0,0 +1,15 @@
+Require Import Ltac2.Ltac2.
+
+Ltac2 Notation "split" bnd(bindings) := Std.split (bnd ()).
+
+Goal exists n, n = 0.
+Proof.
+split with (x := 0).
+Std.reflexivity ().
+Qed.
+
+Goal exists n, n = 0.
+Proof.
+split with 0.
+split.
+Qed.