aboutsummaryrefslogtreecommitdiff
path: root/test/cases
AgeCommit message (Collapse)Author
2022-09-02Sema: improve behavior of comptime_int backed enumsVeikka Tuominen
2022-09-02Sema: add error for enum tag value overflowVeikka Tuominen
Closes #12291
2022-09-02Sema: fix noalias coercion error messageVeikka Tuominen
Closes #11769
2022-09-02AstGen: use reachableExpr for try operandVeikka Tuominen
Closes #12248
2022-09-01Sema: add more validation to coerceVarArgParamVeikka Tuominen
Closes #12706
2022-08-30Sema: check that target supports tail callsVeikka Tuominen
2022-08-30Sema: shift of comptime int with runtime valueVeikka Tuominen
Closes #12290
2022-08-30Sema: do not emit generic poison for non generic parametersVeikka Tuominen
Closes #12679
2022-08-30Sema: improve handling of always_tail call modifierVeikka Tuominen
Closes #4301 Closes #5692 Closes #6281 Closes #10786 Closes #11149 Closes #11776
2022-08-30test-cases: fix compiler error locations for hello world with updatesJakub Konka
2022-08-29Sema: fix access of inactive union field when enum and union fields are in ↵Veikka Tuominen
different order Closes #12667
2022-08-28add error tests for now correctly behaving casesVeikka Tuominen
Closes #6377
2022-08-28Sema: add error for switch on sliceVeikka Tuominen
Closes #12651
2022-08-28AstGen: add error for named function typeVeikka Tuominen
Closes #12660
2022-08-27Sema: add error for non-comptime param in comptime funcantlilja
Adds error for taking a non comptime parameter in a function returning a comptime-only type but not when that type is dependent on a parameter. Co-authored-by: Veikka Tuominen <git@vexu.eu>
2022-08-25Sema: ignore comptime params in partial func type checkVeikka Tuominen
This fixes a bug exposed by cd1833044ab7505bc101c85f59889bd3ea3fac80 where a function type would be converted to generic_poison even after being instantiated due to containing comptime only types. This could also be fixed by just checking `is_generic_instantiation` but this way also provides better type names. Closes #12625
2022-08-24Merge pull request #12623 from Vexu/stage2-fixesAndrew Kelley
Stage2 fixes
2022-08-24Merge pull request #12574 from Vexu/remove-bit-op-type-paramAndrew Kelley
stage2+stage1: remove type parameter from bit builtins
2022-08-24Sema: correctly reset inst_map for analyzeInlineCallArgVeikka Tuominen
Closes #12622
2022-08-24Sema: fix crash on slice of non-array typeVeikka Tuominen
Closes #12621
2022-08-24Sema: do not construct nested partial function typesVeikka Tuominen
Closes #12616
2022-08-22Sema: fix fieldCallBind on tuples and anon structsVeikka Tuominen
Closes #12573
2022-08-22stage2+stage1: remove type parameter from bit builtinsVeikka Tuominen
Closes #12529 Closes #12511 Closes #6835
2022-08-22Sema: fix parameter of type 'T' must be comptime errorVeikka Tuominen
Closes #12519 Closes #12505
2022-08-21Sema: add note about function call being comptime because of comptime only ↵Veikka Tuominen
return type
2022-08-19make self-hosted the default compilerAndrew Kelley
stage1 is available behind the -fstage1 flag. closes #89
2022-08-18AstGen: disallow leading zeroes in int literals and int typeszooster
This makes `0123` and `u0123` etc. illegal. I'm now confident that this is a good change because I actually caught two C header translation mistakes in `haiku.zig` with this. Clearly, `0123` being octal in C (TIL) can cause confusion, and we make this easier to read by requiring `0o` as the prefix and now also disallowing leading zeroes in integers. For consistency and because it looks weird, we disallow it for integer types too (e.g. `u0123`). Fixes #11963 Fixes #12417
2022-08-18Merge pull request #12462 from Vexu/stage2-noreturnVeikka Tuominen
Stage2: improve behavior of noreturn
2022-08-17fix typo in compile error messageAndrew Kelley
2022-08-17add testVeikka Tuominen
2022-08-17Sema: allow empty enums and unionsVeikka Tuominen
2022-08-17Sema: properly handle noreturn fields in unionsVeikka Tuominen
2022-08-17Sema: make noreturn error union behave correctlyVeikka Tuominen
2022-08-17Sema: make optional noreturn behave correctlyVeikka Tuominen
2022-08-16AstGen: detect declarations shadowing localsVeikka Tuominen
Closes #9355
2022-08-15Merge pull request #12416 from Vexu/stage2-safetyVeikka Tuominen
Stage2 error set safety improvements
2022-08-15stage2: add compile errors for comptime `@shrExact` and `@divExact` failuresLeRoyce Pearson
2022-08-12Sema: add error for signed integer divisionmartinhath
stage1 error reads error: division with 'i32' and 'comptime_int': signed integers must use @divTrunc, @divFloor, or @divExact Fixes: #12339
2022-08-12stage2: check for zero in `@intToError` safetyVeikka Tuominen
2022-08-10Merge pull request #12379 from ifreund/packed-struct-explicit-backing-intAndrew Kelley
stage2: Implement explicit backing integers for packed structs
2022-08-10stage2: add compile error for invalid null/undefined pointer castInKryption
2022-08-10stage2: add compile error for shlExact overflowLeRoyce Pearson
- moves a stage1 test case and makes it target `llvm` backend instead of `stage1` backend
2022-08-10stage2: Implement explicit backing integers for packed structsIsaac Freund
Now the backing integer of a packed struct type may be explicitly specified with e.g. `packed struct(u32) { ... }`.
2022-08-09Sema: add declared here note to function call errorsVeikka Tuominen
2022-08-09stage2: generate call arguments in separate blocksVeikka Tuominen
2022-08-09stage2: correct node offset of nested declarationsVeikka Tuominen
2022-08-08stage2: pass anon name strategy to reifyVeikka Tuominen
2022-08-07delete failing RISC-V testAndrew Kelley
this backend needs to get further along before it deserves test coverage.
2022-08-07remove brittle test caseAndrew Kelley
see #12358
2022-08-06Merge pull request #12337 from Vexu/stage2-safetyAndrew Kelley
Stage2: implement remaining runtime safety checks