| author | |
| committer | |
| log | cf3b9f4f5b82dae4cefc793da0674438fbd60384 |
| tree | c6d6fc65194fe878c11e7a87110fb317e80d5bda |
| parent | 0caee421e38672869dd596e6af732567cfaf2037 |
closes #2051 files changed, 11 insertions(+), 0 deletions(-)
test/cases/bool.zig+11| ... | @@ -44,3 +44,14 @@ fn shortCircuitAndOr() { | ... | @@ -44,3 +44,14 @@ fn shortCircuitAndOr() { |
| 44 | a ||= true; | 44 | a ||= true; |
| 45 | assert(a); | 45 | assert(a); |
| 46 | } | 46 | } |
| 47 | |||
| 48 | const global_f = false; | ||
| 49 | const global_t = true; | ||
| 50 | const not_global_f = !global_f; | ||
| 51 | const not_global_t = !global_t; | ||
| 52 | fn compileTimeBoolnot() { | ||
| 53 | @setFnTest(this); | ||
| 54 | |||
| 55 | assert(not_global_f); | ||
| 56 | assert(!not_global_t); | ||
| 57 | } |