aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2017-08-08 14:21:11 +0200
committerPierre-Marie Pédrot2017-08-08 15:26:11 +0200
commit3fbba861d5355cad92cac52965c8e76a35825c7a (patch)
tree4d90154704a17a98f822552711fe78c8fe24adb6 /tests
parent3d1092cf7df3229ecc2a4da60a33cf7c6b9be1a3 (diff)
Another batch of primitive operations.
Diffstat (limited to 'tests')
-rw-r--r--tests/tacticals.v22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/tacticals.v b/tests/tacticals.v
new file mode 100644
index 0000000000..73f9c03b87
--- /dev/null
+++ b/tests/tacticals.v
@@ -0,0 +1,22 @@
+Require Import Ltac2.Ltac2.
+
+Import Ltac2.Notations.
+
+Goal True.
+Proof.
+Fail fail.
+Fail solve [ () ].
+try fail.
+repeat fail.
+repeat ().
+solve [ constructor ].
+Qed.
+
+Goal True.
+Proof.
+first [
+ Message.print (Message.of_string "Yay"); fail
+| constructor
+| Message.print (Message.of_string "I won't be printed")
+].
+Qed.