aboutsummaryrefslogtreecommitdiff
path: root/test/debug_safety.zig
AgeCommit message (Collapse)Author
2018-01-25rename "debug safety" to "runtime safety"Andrew Kelley
closes #437
2018-01-15clean up error return tracingAndrew Kelley
* error return tracing is disabled in release-fast mode * add @errorReturnTrace * zig build API changes build return type from `void` to `%void` * allow `void`, `noreturn`, and `u8` from main. closes #535
2018-01-07`a catch unreachable` generates unwrap-error codeAndrew Kelley
See #545 See #510 See #632
2017-12-22explicitly return from blocksAndrew Kelley
instead of last statement being expression value closes #629
2017-11-16debug safety for unionsAndrew Kelley
2017-10-16fix debug safety tests on windowsAndrew Kelley
See #302
2017-08-30align syntax: align(4) instead of align 4Andrew Kelley
closes #37
2017-08-29more alignment improvementsAndrew Kelley
* add alignment capability for fn protos * add @alignCast * fix some ast rendering code * fix some ir rendering code * add error for pointer cast increasing alignment * update allocators in std to correctly align See #37
2017-08-19bit shifting safetyAndrew Kelley
* add u3, u4, u5, u6, u7 and i3, i4, i5, i6, i7 * shift operations shift amount parameter type is integer with log2 bit width of other param - This enforces not violating undefined behavior on shift amount >= bit width with the type system * clean up math.log, math.ln, math.log2, math.log10 closes #403
2017-08-09more intuitive left shift and right shift operatorsAndrew Kelley
Before: * << is left shift, not allowed to shift 1 bits out * <<% is left shift, allowed to shift 1 bits out * >> is right shift, allowed to shift 1 bits out After: * << is left shift, allowed to shift 1 bits out * >> is right shift, allowed to shift 1 bits out * @shlExact is left shift, not allowed to shift 1 bits out * @shrExact is right shift, not allowed to shift 1 bits out Closes #413
2017-05-06builtin functions for division and remainder divisionAndrew Kelley
* add `@divTrunc` and `@divFloor` functions * add `@rem` and `@mod` functions * add compile error for `/` and `%` with signed integers * add `.bit_count` for float primitive types closes #217
2017-04-19convert debug safety tests to zig build systemAndrew Kelley