diff options
| author | jp | 2020-02-12 17:46:48 +0000 |
|---|---|---|
| committer | jp | 2020-02-12 17:46:48 +0000 |
| commit | ed8bccd927306551f93d5aab8d0e2a92b9e5d227 (patch) | |
| tree | 55bf788c8155f0c7d024f2147f5eb3873729b02a /test/c/bitvector_update2.sail | |
| parent | 31a65c9b7383d2a87da0fbcf5c265d533146ac23 (diff) | |
| parent | 4a72cb8084237161d0bccc66f27d5fb6d24315e0 (diff) | |
Merge branch 'sail2' of https://github.com/rems-project/sail into sail2
Diffstat (limited to 'test/c/bitvector_update2.sail')
| -rw-r--r-- | test/c/bitvector_update2.sail | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/c/bitvector_update2.sail b/test/c/bitvector_update2.sail new file mode 100644 index 00000000..8e5e9918 --- /dev/null +++ b/test/c/bitvector_update2.sail @@ -0,0 +1,14 @@ +default Order dec +$include <prelude.sail> + +val "print_endline" : string -> unit + +function main() -> unit = { + var bv = 0b101; + let x = bitzero; + let y = bitone; + let z = bitzero; + bv = [x, y, z]; + assert(bv == 0b010); + print_endline("ok") +} |
