aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/tuple.zig
AgeCommit message (Collapse)Author
2022-08-28Sema: correct one possible value for tuplesVeikka Tuominen
Closes #12376
2022-08-24Sema: check one possible value earlier in `zirValidateArrayInit`Veikka Tuominen
Closes #12566
2022-07-30Sema: implement coercion from tuples to tuplesVeikka Tuominen
Closes #12242
2022-07-30stage2: fix hashing of struct valuesVeikka Tuominen
Closes #12279
2022-07-08stage2: Support `@fieldParentPtr` for tuples and anon structsCody Tapscott
2022-07-08stage2: Support `@offsetOf` for tuples and anon structsCody Tapscott
2022-07-08stage2: Support initializing anonymous struct typeCody Tapscott
This commit adds support for initializing `.anon_struct` types. There is also some follow-up work to do for both tuples and structs regarding comptime fields, so this also adds some tests to keep track of that work.
2022-06-25stage2 ARM: implement basic intCast and error union wrappingjoachimschmidt557
2022-05-29AstGen: improve generated Zir for array init exprsVeikka Tuominen
2022-05-26clean up some behavior testsAndrew Kelley
* improve names * properly categorize a couple of bug cases * mark one as already passing
2022-03-24pass more behaviour testsJakub Konka
2022-03-19wasm: Enable passing testsLuuk de Gram
This enables the tests that now pass due to the changes to lower parent pointers are lowered, as well as the additional features to unions.
2022-03-18CBE: add support for tuplesDaniele Cocca
Also promote tests that are now passing.
2022-03-18tuple: replace expectEqual() with expect()Daniele Cocca
2022-03-14stage2: rework Value storage of structs and arraysAndrew Kelley
Now they both use `Value.Tag.aggregate`. Additionally the LLVM backend now has implemented lowering of tuple values.
2022-03-10AstGen: structInitExpr and arrayInitExpr avoid crashAndrew Kelley
when an inferred alloc is passed as the result pointer of a block.
2022-03-10AstGen: lower anon struct inits differentlyAndrew Kelley
This is a companion commit to f2a5d0bf94897554e25e889dc1c6c4c7fc6c1217. What that one did for tuples, this one does for anonymous structs.
2022-03-09Sema: implement pointer-to-tuple coercion to slice and structAndrew Kelley
2022-03-09Sema: fix generic fn instantiation with anytypeAndrew Kelley
When the anytype parameter had only one-possible-value (e.g. `void`), it would create a mismatch in the function type and the function call. Now the function type and the callsite both omit the one-possible-value anytype parameter in instantiated generic functions.
2022-03-09Sema: implement tuple fieldptr and fieldvalAndrew Kelley
2022-03-08deprecated TypeInfo in favor of TypeJonathan Marler
Co-authored-by: Veikka Tuominen <git@vexu.eu>
2022-03-01Sema: correct implementation of comptimeOnly for tuplesAndrew Kelley
This makes formatted printing work when mixing comptime and runtime fields.
2022-02-28stage2: tuple mul/catVeikka Tuominen
2022-02-12move more behavior tests to the "passing" sectionAndrew Kelley
2021-06-21std, src, doc, test: remove unused variablesJacob G-W
2021-06-06stage1: Allow array-like initialization for tuple typesLemonBoy
This small change makes working with tuple types much easier, allowing the use of anonymous (eg. obtained with meta.ArgsTuple) tuples in more places without the need for specifying each (quoted!) field name in the initializer.
2021-05-08Merge remote-tracking branch 'origin/master' into stage2-whole-file-astgenAndrew Kelley
Conflicts: * doc/langref.html.in * lib/std/enums.zig * lib/std/fmt.zig * lib/std/hash/auto_hash.zig * lib/std/math.zig * lib/std/mem.zig * lib/std/meta.zig * test/behavior/alignof.zig * test/behavior/bitcast.zig * test/behavior/bugs/1421.zig * test/behavior/cast.zig * test/behavior/ptrcast.zig * test/behavior/type_info.zig * test/behavior/vector.zig Master branch added `try` to a bunch of testing function calls, and some lines also had changed how to refer to the native architecture and other `@import("builtin")` stuff.
2021-04-29move behavior tests from test/stage1/ to test/Andrew Kelley
And fix test cases to make them pass. This is in preparation for starting to pass behavior tests with self-hosted.