summaryrefslogtreecommitdiff
path: root/test/ptrcmp.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-08-19 18:29:54 -0400
committerOri Bernstein <ori@eigenstate.org>2014-08-19 18:29:55 -0400
commite359b66fa9e58e8806e0df26d28feca87db7c7a6 (patch)
treeb7e3a925737f1052458dfce2393464001bfcc395 /test/ptrcmp.myr
parent0ed042f0cfb35372cada674f8a5e878b0768a8f0 (diff)
downloadmc-e359b66fa9e58e8806e0df26d28feca87db7c7a6.tar.gz
Fix broken test.
We forgot to reinitialize the pointers. Ooops.
Diffstat (limited to 'test/ptrcmp.myr')
-rw-r--r--test/ptrcmp.myr2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ptrcmp.myr b/test/ptrcmp.myr
index ec47c2b..931c4ae 100644
--- a/test/ptrcmp.myr
+++ b/test/ptrcmp.myr
@@ -8,6 +8,8 @@ const main = {
a = &v1
b = &v1
std.assert(a == b, "pointers should be equal, but weren't\n")
+ a = &v1
+ b = &v2
std.assert(a != b, "pointers weren't equal, but should be\n")
std.exit(0)
}