| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2022-05-13 | migrate runtime safety tests to the new test harness | Andrew Kelley | |
| * migrate runtime safety tests to the new test harness - this required adding compare output / execution support for stage1 to the test harness. * rename `zig build test-stage2` to `zig build test-cases` since it now does quite a bit of stage1 testing actually. I named it this way since the main directory in the source tree associated with these tests is "test/cases/". * add some documentation for the test manifest format. | |||
| 2022-05-12 | fix bad runtime safety test cases | Andrew Kelley | |
| The "slicing operator with sentinel" runtime safety test cases should all have been compile errors in their current forms. In this commit I adjust them to use runtime-known slices before triggering the runtime safety. Furthermore the test cases did not actually have unique names. | |||
| 2022-03-30 | replace other uses of `std.meta.Vector` with `@Vector` (#11346) | Meghan | |
| 2021-06-23 | fix unused variable errors in runtime safety test cases | Andrew Kelley | |
| 2021-05-17 | update langref, compile-error tests, safety tests | Andrew Kelley | |
| for the std.builtin re-arranging | |||
| 2021-04-24 | stage1: Require a block after suspend | LemonBoy | |
| Closes #8603 | |||
| 2021-01-30 | Replace @TagType uses, mostly with std.meta.Tag | Tadeo Kondrak | |
| 2020-12-05 | Add some test cases for the previous commits | LemonBoy | |
| 2020-11-09 | stage1: Print correct error message for vector @intCast | LemonBoy | |
| 2020-11-06 | Revert "update runtime safety test case - unsigned-signed vector cast" | Andrew Kelley | |
| This reverts commit 663f0b399c5f4e2528a969fba6cd58d8f9784f5a. The behavior appears to be inconsistent between running locally and on the CI. I suspect it could be based on what vector CPU features are available. | |||
| 2020-11-06 | update runtime safety test case - unsigned-signed vector cast | Andrew Kelley | |
| now it returns "integer cast truncated bits" instead of "attempt to cast negative value to unsigned integer" which I think is correct. | |||
| 2020-10-19 | stage1: Implement `@intCast` between vectors | LemonBoy | |
| Explicit and implicit integer casts on vector types are now supported and follow the same rules as their scalar counterparts. Implicit float casts are accidentally supported, `@floatCast` is still not vector-aware. | |||
| 2020-10-14 | stage1: Fix missing runtime safety check for intToPtr | LemonBoy | |
| Elide the alignment check if the pointer alignment is one, the null check must be preserved as it depends on the pointer type. Fixes #6667 | |||
| 2020-07-05 | stage1: add missing runtime safety for @intCast unsigned -> signed of same ↵ | xackus | |
| bit count | |||
| 2020-06-24 | Fixed @asyncCall in runtime safety test | Alexandros Naskos | |
| 2020-05-05 | update docs/tests for async/extern fn removal | Tadeo Kondrak | |
| 2020-05-05 | update tests for nosuspend | Tadeo Kondrak | |
| 2020-04-28 | @Vector -> std.meta.Vector | Tadeo Kondrak | |
| 2020-04-07 | fix the new runtime-safety tests | Andrew Kelley | |
| Thanks to Vexu's work in e62671f643, compile errors were identified in these test cases! This commit fixes them to use `const` as appropriate. | |||
| 2020-04-07 | Merge pull request #4857 from LemonBoy/fix-4777 | Andrew Kelley | |
| Rewrite the bound checks in slice operator | |||
| 2020-04-06 | Add some tests for the runtime safety checks | LemonBoy | |
| 2020-04-05 | add runtime safety tests for SIMD integer division | Andrew Kelley | |
| 2020-03-19 | test & docs fixups to work with new semantics | Andrew Kelley | |
| 2020-03-11 | fix stray warn() in runtime safety test | Andrew Kelley | |
| 2020-03-10 | ir: Implement more safety checks for shl/shr | LemonBoy | |
| The checks are now valid on types whose size is not a power of two. Closes #2096 | |||
| 2020-02-29 | C pointer slices are no longer allowzero (#4462) | Alexandros Naskos | |
| * Slices from C pointers are no longer allowzero but instead insert a runtime assertion. * Added a test, fixed code for cases with non-allowzero C pointers * Create new type when flipping allow_zero, sometimes we get a cached value back from adjust_ptr_len. * Added comments, changed panic message * Added runtime safety test. | |||
| 2020-02-23 | remove @bytesToSlice, @sliceToBytes from tests, docs | xackus | |
| 2019-12-20 | fix safety for sentinel-slicing floats | Andrew Kelley | |
| 2019-12-20 | sentinel slicing improvements | Andrew Kelley | |
| * add runtime safety for slicing pointers, arrays, and slices. * slicing without a sentinel value results in non-sentineled slice * improved `std.debug.panic` handling of panic-during-panic | |||
| 2019-12-15 | Make sure the address is aligned for intToPtr ops | LemonBoy | |
| Closes #773 | |||
| 2019-11-29 | more test regression fixes | Andrew Kelley | |
| 2019-10-22 | implement safety for resuming non-suspended function | Andrew Kelley | |
| closes #3469 | |||
| 2019-09-06 | runtime safety for noasync function calls | Andrew Kelley | |
| See #3157 | |||
| 2019-08-17 | fix compiler not checking alignment of function frames | Andrew Kelley | |
| closes #3086 | |||
| 2019-08-08 | more debuggable safety for awaiting twice | Andrew Kelley | |
| 2019-08-06 | error return trace across suspend points | Andrew Kelley | |
| 2019-08-03 | implement `@asyncCall` which supports async function pointers | Andrew Kelley | |
| 2019-08-03 | add runtime safety for resuming an awaiting function | Andrew Kelley | |
| 2019-07-22 | fix multiple coroutines existing clobbering each other | Andrew Kelley | |
| 2019-06-09 | different array literal syntax when inferring the size | Andrew Kelley | |
| old syntax: []i32{1, 2, 3} new syntax: [_]i32{1, 2, 3} closes #1797 | |||
| 2019-05-08 | C pointers support .? operator | Andrew Kelley | |
| see #1967 | |||
| 2019-03-25 | implement allowzero pointer attribute | Andrew Kelley | |
| closes #1953 only needed for freestanding targets. also adds safety for `@intToPtr` when the address is zero. | |||
| 2019-03-23 | add compile error for ignoring error | Andrew Kelley | |
| closes #772 | |||
| 2019-02-22 | implement vector negation | Andrew Kelley | |
| also fix vector behavior tests, they weren't actually testing runtime vectors, but now they are. See #903 | |||
| 2019-02-14 | runtime safety check for casting null to pointer | Andrew Kelley | |
| see #1059 | |||
| 2019-02-09 | implement vector math safety with ext and trunc | Andrew Kelley | |
| 2019-02-07 | fix using the result of @intCast to u0 | Andrew Kelley | |
| closes #1817 | |||
| 2018-11-24 | fix @intCast not catching negative numbers to unsigned | Andrew Kelley | |
| 2018-11-13 | New Zig formal grammar (#1685) | Jimmi Holst Christensen | |
| Reverted #1628 and changed the grammar+parser of the language to not allow certain expr where types are expected | |||
| 2018-10-15 | Solve the return type ambiguity (#1628) | Jimmi Holst Christensen | |
| Changed container and initializer syntax * <container> { ... } -> <container> . { ... } * <exrp> { ... } -> <expr> . { ...} | |||
