aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
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.