summaryrefslogtreecommitdiff
path: root/test/c
diff options
context:
space:
mode:
authorAlasdair Armstrong2019-03-13 14:25:00 +0000
committerAlasdair Armstrong2019-03-13 14:27:40 +0000
commitee54fe8fc8a4afc8fb9f6cc0bd8e2930162f49ad (patch)
tree5b68a9b927ccb2341902fbc98ce138d333641f6f /test/c
parent874bb01f0e2c201474e0a07602a38037bb2495f9 (diff)
C: Add missing update_lbits builtin
Diffstat (limited to 'test/c')
-rw-r--r--test/c/issue37.expect1
-rw-r--r--test/c/issue37.sail9
2 files changed, 10 insertions, 0 deletions
diff --git a/test/c/issue37.expect b/test/c/issue37.expect
new file mode 100644
index 00000000..6e77c916
--- /dev/null
+++ b/test/c/issue37.expect
@@ -0,0 +1 @@
+foo = 0xE
diff --git a/test/c/issue37.sail b/test/c/issue37.sail
new file mode 100644
index 00000000..404c4ef4
--- /dev/null
+++ b/test/c/issue37.sail
@@ -0,0 +1,9 @@
+default Order dec
+
+$include <vector_dec.sail>
+
+function main () : unit->unit = {
+ foo = 0xf;
+ foo[0] = bitzero;
+ print_bits("foo = ", foo)
+} \ No newline at end of file