summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2018-06-09 14:08:28 -0700
committerOri Bernstein <ori@eigenstate.org>2018-06-09 14:08:28 -0700
commitaed73f868fbd7b9774c25031893adda907a9558c (patch)
treec08757ec8276112c94eb84ccb642e638c949cbfb
parent84393ead97a2e189b6057420ad7d94170b9aa00f (diff)
downloadmc-aed73f868fbd7b9774c25031893adda907a9558c.tar.gz
Fix test:wqs
-rw-r--r--test/fncast.myr4
-rw-r--r--test/matchptr.myr1
-rw-r--r--test/overlappingif.myr1
3 files changed, 4 insertions, 2 deletions
diff --git a/test/fncast.myr b/test/fncast.myr
index 6ea40a6..ed17486 100644
--- a/test/fncast.myr
+++ b/test/fncast.myr
@@ -6,11 +6,11 @@ const main = {
fn = {
}
+ ptr = (fn : byte#)
+ ptr = (envfn : byte#)
envfn = {
ptr = ptr
}
- ptr = (fn : byte#)
- ptr = (envfn : byte#)
std.put("ok\n")
}
diff --git a/test/matchptr.myr b/test/matchptr.myr
index 9dc2367..e071809 100644
--- a/test/matchptr.myr
+++ b/test/matchptr.myr
@@ -10,6 +10,7 @@ const main = {
var y : loop
var ok
+ ok = false
x = `std.Some &(`std.Some 123)
match x
| `std.Some &(`std.None): std.put("failed\n")
diff --git a/test/overlappingif.myr b/test/overlappingif.myr
index 0a2de56..5226acf 100644
--- a/test/overlappingif.myr
+++ b/test/overlappingif.myr
@@ -7,6 +7,7 @@ const main = {
v = 0xff
+ x = 42
if v & 0xff00 != 0
x = 1
elif v & 0xfff0 != 0