aboutsummaryrefslogtreecommitdiff
path: root/test/cases
AgeCommit message (Collapse)Author
2018-11-14** and ++ operators force comptime on operandsAndrew Kelley
closes #1707
2018-11-13New 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-11-09array type syntax implies comptimeAndrew Kelley
2018-10-26remove @minValue,@maxValue; add std.math.minInt,maxIntAndrew Kelley
closes #1466 closes #1476
2018-10-15remove implicit cast from T to *const TAndrew Kelley
closes #1465
2018-10-15Solve the return type ambiguity (#1628)Jimmi Holst Christensen
Changed container and initializer syntax * <container> { ... } -> <container> . { ... } * <exrp> { ... } -> <expr> . { ...}
2018-09-26fix variables which are pointers to packed struct fieldsAndrew Kelley
closes #1121
2018-09-26the last number in a packed ptr is host int bytesAndrew Kelley
See #1121
2018-09-26fix implicit casting to *c_voidAndrew Kelley
closes #1588 also some small std lib changes regarding posix sockets and one doc typo fix
2018-09-25fix self reference through fn ptr field crashAndrew Kelley
closes #1208
2018-09-24fix more bigint code paths and add testsAndrew Kelley
2018-09-24fix comptime bitwise operations with negative valuesAndrew Kelley
closes #1387 closes #1529
2018-09-21stage1: unify 2 implementations of pointer derefAndrew Kelley
I found out there were accidentally two code paths in zig ir for pointer dereference. So this should fix a few bugs. closes #1486
2018-09-21fix comptime string concatenation ignoring slice boundsAndrew Kelley
closes #1362
2018-09-21fixupsAndrew Kelley
2018-09-21Merge branch 'BitByteOffsetOfs' of https://github.com/raulgrell/zig into ↵Andrew Kelley
raulgrell-BitByteOffsetOfs
2018-09-21fix comptime slice of pointer to arrayAndrew Kelley
closes #1565
2018-09-20better string literal caching implementationAndrew Kelley
We were caching the ConstExprValue of string literals, which works if you can never modify ConstExprValues. This premise is broken with `comptime var ...`. So I implemented an optimization in ConstExprValue arrays, where it stores a `Buf *` directly rather than an array of ConstExprValues for the elements, and then similar to array of undefined, it is expanded into the canonical form when necessary. However many operations can happen directly on the `Buf *`, which is faster. Furthermore, before a ConstExprValue array is expanded into canonical form, it removes itself from the string literal cache. This fixes the issue, because before an array element is modified it would have to be expanded. closes #1076
2018-09-18fix optional pointer to empty struct incorrectly being non-nullAndrew Kelley
closes #1178
2018-09-18implementation for bitcasting extern enum type to c_intAndrew Kelley
closes #1036
2018-09-18fix implicit cast of packed struct field to const ptrAndrew Kelley
closes #966
2018-09-18fix @bytesToSlice on a packed structAndrew Kelley
closes #1551
2018-09-17link to #1544Josh Wolfe
2018-09-17somewhat realistic usecase test for shifting strange integer sizesJosh Wolfe
2018-09-17fix codegen for @intCast to u0Andrew Kelley
2018-09-17fix crash when bit shifting a u1Andrew Kelley
2018-09-17dereferencing a *u0 is comptime-known to be 0Andrew Kelley
2018-09-17allow extern structs to have stdcallcc function pointersAndrew Kelley
closes #1536
2018-09-16fix crash when pointer casting a runtime extern functionAndrew Kelley
2018-09-14fix alignment of structsAndrew Kelley
closes #1248 closes #1052 closes #1154
2018-09-14fix tagged union with all void payloads but meaningful tagAndrew Kelley
closes #1322
2018-09-13fix assertion failure on compile-time `@intToPtr` of functionAndrew Kelley
2018-09-13remove `this`. add `@This()`.Andrew Kelley
closes #1283
2018-09-13remove the scope parameter of setFloatModeAndrew Kelley
also document that scopes inherit this value. See #367 See #1283
2018-09-13fix tagged union with only 1 field tripping assertionAndrew Kelley
closes #1495 now the tag type of an enum with only 1 item is comptime_int.
2018-09-11fix incorrect error union const value generationAndrew Kelley
closes #1442 zig needed to insert explicit padding into this structure before it got bitcasted.
2018-09-11fix incorrect union const value generationAndrew Kelley
closes #1381 The union was generated as a 3 byte struct when it needed to be 4 bytes so that the packed struct bitcast could work correctly. Now it recognizes this situation and adds padding bytes to become the correct size so that it can fit into an array.
2018-09-07C ABI: support returning large structs on x86_64Andrew Kelley
also panic instead of emitting bad code for returning small structs See #1481
2018-09-07builtin functions: @byteOffsetOf and @bitOffsetOfraulgrell
2018-09-05stage1: improve handling of generic fn proto type exprAndrew Kelley
closes #902
2018-09-05add compile error for using outer scoped runtime variablesAndrew Kelley
from a fn defined inside it. closes #876
2018-09-05add test case for #726Andrew Kelley
2018-09-05allow comptime_int to @floatToIntAndrew Kelley
2018-09-05stage1: fix tagged union with no payloadsAndrew Kelley
closes #1478
2018-09-03fix incorrect value for inline loopAndrew Kelley
09cc1dc66067f378 failed to handle mem_slot_index correctly closes #1436
2018-09-03ability to @ptrCast to *voidAndrew Kelley
fixes #960
2018-08-28fix crash when var in inline loop has different typesAndrew Kelley
closes #917 closes #845 closes #741 closes #740
2018-08-27minor fixupsAndrew Kelley
2018-08-27Allow implicit cast from *T and [*]T to ?*c_voidraulgrell
2018-08-27fix false negative determining if function is genericAndrew Kelley
This solves the smaller test case of #1421 but the other test case is still an assertion failure.