summaryrefslogtreecommitdiff
path: root/test/mono/assert2.sail
diff options
context:
space:
mode:
Diffstat (limited to 'test/mono/assert2.sail')
-rw-r--r--test/mono/assert2.sail9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/mono/assert2.sail b/test/mono/assert2.sail
new file mode 100644
index 00000000..67e18f76
--- /dev/null
+++ b/test/mono/assert2.sail
@@ -0,0 +1,9 @@
+val f : forall 'n. atom('n) -> unit effect {escape}
+
+function f(n) = {
+ let 'm = 2 * n in {
+ assert(constraint('n in {8,16}));
+ let x : bits('m) = replicate_bits(0b0,'m) in
+ ()
+ }
+}