Commit cf3b9f4f5b

Andrew Kelley <superjoe30@gmail.com>
2017-01-16 23:15:42
add test for compile time bool not operator
closes #205
1 parent 0caee42
Changed files (1)
test
cases
test/cases/bool.zig
@@ -44,3 +44,14 @@ fn shortCircuitAndOr() {
     a ||= true;
     assert(a);
 }
+
+const global_f = false;
+const global_t = true;
+const not_global_f = !global_f;
+const not_global_t = !global_t;
+fn compileTimeBoolnot() {
+    @setFnTest(this);
+
+    assert(not_global_f);
+    assert(!not_global_t);
+}