summaryrefslogtreecommitdiff
path: root/src/test/test3.sail
diff options
context:
space:
mode:
authorKathy Gray2014-06-04 18:17:32 +0100
committerKathy Gray2014-06-04 18:17:32 +0100
commit68ea054c0a26fd8da8198a449fc248ed621311c5 (patch)
tree2d404f4a8f5a13ea06d7f04b3a873a170b3d5ec9 /src/test/test3.sail
parent978f5bc208248afe284bb9488c4e892e9315c8a2 (diff)
Fixup type coercions and overloading
Reduce the number of implicit coercions we're doing, expanding overloading and fixing up types of functions. Warning: test_power does not run as not all overloaded funcitons are implemented Warning: vector concatenation does not pretty print to sail source yet
Diffstat (limited to 'src/test/test3.sail')
-rw-r--r--src/test/test3.sail2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test3.sail b/src/test/test3.sail
index 06086dd7..3a806f41 100644
--- a/src/test/test3.sail
+++ b/src/test/test3.sail
@@ -48,7 +48,7 @@ function nat main _ = {
dummy_reg := (deinfix +)(5, 37);
(* casts and external calls *)
dummy_reg := 0b01 + 0b01;
- dummy_reg2 := dummy_reg; (* cast from [|256|] to bit[8] *)
+ dummy_reg2 := 0b00000001;
dummy_reg2 := dummy_reg2 + dummy_reg2; (* cast to nat for add call *)
dummy_reg2; (* cast again and return 4 *)
}