commit c6e95aa442a2140d2983b1904be84ee5a515017a
parent 1b96e78d6407353d55a56bd1ebae7d94e5ad2406
Author: Sebastian <sebastian@sebsite.pw>
Date: Mon, 7 Mar 2022 20:47:40 -0500
tests: test unary negation (-)
Signed-off-by: Sebastian <sebastian@sebsite.pw>
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/tests/29-unarithm.ha b/tests/29-unarithm.ha
@@ -13,6 +13,8 @@ fn addr() void = {
assert(*y == 69);
let z = &struct { a: int = 42 };
assert(z.a == 42);
+ let a = -2;
+ assert(a == 0i - 2i);
};
export fn main() void = {