aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/bugs
AgeCommit message (Collapse)Author
2022-10-12codegen: add support for lowering .field_ptr on a slicejacobly0
Closes #13068
2022-10-11stage2 LLVM: Use a packed aggregate for union payload initCody Tapscott
Without the packed qualifier, the type layout that we use to initialize doesn't match the correct layout of the underlying storage, causing corrupted data and past-the-end writes.
2022-10-05Zir: handle ranges in `getMultiProng`Veikka Tuominen
Closes #12890
2022-09-30Type: correctly handle ABI align strat for optionals and error unionsVeikka Tuominen
Closes #12984
2022-09-29Sema: fix resolveInferredErrorSet panic when generic inline functionkkHAIKE
2022-09-24Sema: avoid generic parameter error in nested function typeVeikka Tuominen
Related to cd1833044ab7505bc101c85f59889bd3ea3fac80 Closes #12945
2022-09-24Sema: avoid using `pointerDecl` when dealing with slicesVeikka Tuominen
Closes #12885
2022-09-23Sema: resolve struct layout in `zirStructInit`Veikka Tuominen
Closes #12911
2022-09-23Sema: preserve volatileness when constructing field pointersVeikka Tuominen
Closes #12928
2022-09-21AstGen: make loop body's ResultLoc .nonekkHAIKE
Fixes #12555 Fixes #12551 Fixes #12455
2022-09-20Sema: check pointer qualifiers before implicit castVeikka Tuominen
Closes #12881
2022-09-15Sema: handle comptime fields in field call bindVeikka Tuominen
Closes #12801
2022-09-15Sema: resolve lazy align in reifyStructVeikka Tuominen
Closes #12786
2022-09-15Sema: handle empty_struct_value in beginComptimePtrMutationVeikka Tuominen
Closes #12794
2022-09-13Merge remote-tracking branch 'origin/master' into llvm15Andrew Kelley
2022-09-12remove pointless discardsAndrew Kelley
2022-09-09Merge remote-tracking branch 'origin/master' into llvm15Andrew Kelley
2022-09-08llvm: handle pointers in packed structs in more placesVeikka Tuominen
Closes #12776
2022-09-06Merge remote-tracking branch 'origin/master' into llvm15Andrew Kelley
2022-09-04llvm: fix the `type` parameter of `GlobalAlias`riChar
Closes 12680
2022-08-29skip new behavior tests that do not pass for stage1Andrew Kelley
2022-08-26Sema: ensure resolveTypeFields is called for optional and error union typesmartinhath
We call `sema.resolveTypeFields` in order to get the fields of structs and unions inserted into their data structures. If it isn't called, it can happen that the fields of a type is queried before those fields are inserted into (for instance) `Module.Union.fields`, which would result in a wrong 'no field named' error. Fixes: #12486
2022-08-24stage2: explicitly tagged enums no longer have one possible valueAndrew Kelley
Previously, Zig had inconsistent semantics for an enum like this: `enum(u8){zero = 0}` Although in theory this can only hold one possible value, the tag `zero`, Zig no longer will treat the type this way. It will do loads and stores, as if the type has runtime bits. Closes #12619 Tests passed locally: * test-behavior * test-cases
2022-08-22stage2+stage1: remove type parameter from bit builtinsVeikka Tuominen
Closes #12529 Closes #12511 Closes #6835
2022-08-13stage2 astgen: Use `rl` semantics for `@Type`Cody Tapscott
Resolves #12430.
2022-07-23Sema: bad union field access safetyVeikka Tuominen
2022-07-21Sema: validate extern struct field types earlierVeikka Tuominen
`validateExternType` does not require the type to be resolved so we can check it earlier. Only doing it in `resolveTypeFully` lead to worse or missing compile errors.
2022-07-07Merge remote-tracking branch 'origin/master' into llvm14Andrew Kelley
2022-07-08stage1: Fix seg-fault when slicing string literal with sentinelCody Tapscott
2022-07-05Merge remote-tracking branch 'origin/master' into llvm14Andrew Kelley
2022-07-05fix behavior test which was relying on UBAndrew Kelley
2022-07-05stage2: Fix corrupted Type when de-referencing field pointerCody Tapscott
2022-06-25stage2 ARM: implement basic intCast and error union wrappingjoachimschmidt557
2022-06-24stage2: sparc64: Skip Sema-failing tests for nowKoakuma
2022-06-09upgrade behavior test to stage2 fn ptr semanticsAndrew Kelley
2022-06-08add a missing align() to a behavior testAndrew Kelley
2022-06-08stage2: fix type printing of sub-byte pointersAndrew Kelley
2022-06-07x64: pass behavior test bugs/1381Jakub Konka
2022-06-07LLVM: handle extern function name collisionsAndrew Kelley
Zig allows multiple extern functions with the same name, and the backends have to handle this possibility. For LLVM, we keep a sparse map of collisions, and then resolve them in flushModule(). This introduces some technical debt that will have to be resolved when adding incremental compilation support to the LLVM backend.
2022-06-05elf+macho: use explicit alignment on decl is specifiedJakub Konka
2022-06-05x64: disable misbehaving behavior testsJakub Konka
2022-06-01Sema: fix compiler crash with comptime arithmetic involving `@ptrToInt`Andrew Kelley
2022-06-01disable failing testVeikka Tuominen
2022-05-27stage2 AArch64: complete genTypedValuejoachimschmidt557
2022-05-27Merge pull request #11733 from Vexu/stage2Andrew Kelley
more misc stage2 fixes
2022-05-27stage2: add test for fixed issueVeikka Tuominen
2022-05-26clean up some behavior testsAndrew Kelley
* improve names * properly categorize a couple of bug cases * mark one as already passing
2022-05-18wasm: enable 128bit integer behavior testsLuuk de Gram
2022-04-29Merge pull request #11530 from ziglang/test-harnessJakub Konka
test: move compare and run tests to new test harness
2022-04-28test: recursively walk dir with testsJakub Konka
Prune incremental tests by moving non-incremental behavior tests to behavior test suite instead.