aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/tuple.zig
AgeCommit message (Collapse)Author
2023-05-03x86_64: implement fieldParentPtrJacob Young
2023-04-28stage2: sparc64: Skip unimplemented testsKoakuma
2023-03-25x86_64: implement atomic loopsJacob Young
2023-03-21x86_64: (re)implement optional opsJacob Young
Note that this commit also changes the layout of optional for all other backends using `src/codegen.zig` without updating them!
2023-03-15behavior: enable passing behavior tests on stage2_x86_64Jacob Young
2023-03-04Ast: properly handle sentinel-terminated slices in tupler00ster91
Co-authored-by: Veikka Tuominen <git@vexu.eu>
2023-02-18update existing behavior tests and std lib to new for loop semanticsAndrew Kelley
2022-12-31add tests for fixed stage1 bugsVeikka Tuominen
Closes #4144 Closes #4255 Closes #4372 Closes #4375 Closes #4380 Closes #4417 Closes #4423 Closes #4476 Closes #4528 Closes #4562 Closes #4572 Closes #4597 Closes #4639 Closes #4672 Closes #4782 Closes #4955 Closes #4984 Closes #4997 Closes #5010 Closes #5114 Closes #5166 Closes #5173 Closes #5276
2022-12-29add tests for fixed stage1 bugsVeikka Tuominen
Closes #1957 Closes #1994 Closes #2140 Closes #2746 Closes #2802 Closes #2855 Closes #2895 Closes #2981 Closes #3054 Closes #3158 Closes #3234 Closes #3259 Closes #3371 Closes #3376 Closes #3387 Closes #3529 Closes #3653 Closes #3750 Closes #3778 Closes #3882 Closes #3915 Closes #3929 Closes #3961 Closes #3988 Closes #4123 Closes #7448
2022-12-17std.builtin: rename Type.UnionField and Type.StructField's field_type to typer00ster91
2022-12-10stage2: sparc64: Skip unimplemented testsKoakuma
2022-11-12llvm: check that tuple fields have runtime bitsVeikka Tuominen
Just checking that they aren't comptime isn't enough for `@Type` constructed tuples. Closes #13531
2022-10-25cbe: add support for all float literals typesJacob Young
2022-10-25cbe: fix global access fixJacob Young
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.