Add unary op tests

This commit is contained in:
Joey Yakimowich-Payne 2018-06-02 12:32:28 +09:00
commit 4cd94ff462
3 changed files with 16 additions and 0 deletions

View file

@ -55,4 +55,5 @@ let unittest =
tests "function declarations" "test_func" @
tests "enums" "test_enum" @
tests "macros" "test_macro" @
tests "operators" "test_operator" @
[]

View file

@ -0,0 +1,8 @@
int main() {
&a;
*b;
+c;
-d;
~e;
!f;
}

View file

@ -0,0 +1,7 @@
proc main(): cint =
addr a
b[]
+c
-d
not e
not f