aboutsummaryrefslogtreecommitdiff
path: root/test/cases
AgeCommit message (Collapse)Author
2018-08-22fix incorrectly generating an unused const fn globalAndrew Kelley
closes #1277
2018-08-22allow implicit cast from *[N]T to ?[*]T (#1398)Raul Leal
* allow implicit cast from *[N]T to ?[*]T
2018-08-21fix linuxAndrew Kelley
* error.BadFd is not a valid error code. it would always be a bug to get this error code. * merge error.Io with existing error.InputOutput * merge error.PathNotFound with existing error.FileNotFound. Not all OS's support both. * add os.File.openReadC * add error.BadPathName for windows file operations with invalid characters * add os.toPosixPath to help stack allocate a null terminating byte * add some TODOs for other functions to investigate removing the allocator requirement * optimize some implementations to use the alternate functions when a null byte is already available * add a missing error.SkipZigTest * os.selfExePath uses a non-allocating API * os.selfExeDirPath uses a non-allocating API * os.path.real uses a non-allocating API * add os.path.realAlloc and os.path.realC * convert many windows syscalls to use the W versions (See #534)
2018-08-03fix tagged union initialization with a runtime voidAndrew Kelley
closes #1328
2018-08-03better support for `_` identifierkristopher tate
* disallow variable declaration of `_` * prevent `_` from shadowing itself * prevent read access of `_` closes #1204 closes #1320
2018-08-02pull request fixupsAndrew Kelley
* clean up parser code * fix stage2 parse and render code * remove redundant test * make stage1 compile tests leaner
2018-08-02test/cases/cancel.zig: update suspend to use @handle();kristopher tate
Tracking Issue #1296 ;
2018-08-02test/cases/coroutines.zig: update suspend to use @handle();kristopher tate
Tracking Issue #1296 ;
2018-08-02test/cases/coroutines.zig: test for immediate resume inside of suspend with ↵kristopher tate
@handle(); Tracking Issue #1296 ;
2018-08-02test/cases/coroutines.zig: update test to reflect that the promise symbol is ↵kristopher tate
no in scope with suspend; Tracking Issue #1296 ;
2018-08-02test/cases/coroutine_await_struct.zig: update test to reflect that the ↵kristopher tate
promise symbol is no in scope with suspend; Tracking Issue #1296 ;
2018-08-02test/cases/coroutines.zig: remove dummy assert used for testing;kristopher tate
2018-08-02src/codegen.cpp: remove `add_node_error` from `ir_render_handle`;kristopher tate
Tracking Issue #1296 ; Thanks @andrewrk ;
2018-08-02test/cases/couroutines.zig: test @handle();kristopher tate
Tracking Issue #1296 ;
2018-07-30add behavior tests for cancel semanticsAndrew Kelley
2018-07-27suspend sets suspend bitAndrew Kelley
2018-07-19fix generation of error defers for fns inside fnsAndrew Kelley
closes #878
2018-07-17fix @setEvalBranchQuota not respected in generic fn callsAndrew Kelley
closes #1257
2018-07-16allow implicit cast of undefined to optionalAndrew Kelley
2018-07-16all integer sizes are available as primitivesAndrew Kelley
* fix wrong implicit cast for `@IntType` bit_count parameter. * fix incorrect docs for `@IntType` bit_count parameter. closes #1242 closes #745 closes #1240
2018-07-14add an assertion to the testAndrew Kelley
2018-07-14codegen: Store returned value if type is 'handle_is_ptr' and function is not ↵Eduardo Sánchez Muñoz
'first_arg_ret'. Seems to fix #1230, includes test.
2018-07-13allow == for comparing optional pointersAndrew Kelley
closes #658
2018-07-07add @popCount intrinsicAndrew Kelley
2018-07-06fix iterating over a void sliceAndrew Kelley
closes #1203
2018-07-04fix await on early return when return type is structAndrew Kelley
previously, await on an early return would try to access the destroyed coroutine frame; now it copies the result into a temporary variable before destroying the coroutine frame
2018-06-30Merge pull request #1167 from ziglang/comptime-array-by-valueJimmi Holst Christensen
Implement const_values_equal for arrays
2018-06-28Implement const_values_equal for array typeJimmi HC
* This allows arrays to be passed by value at comptime
2018-06-28Correct hex-float parsingMarc Tiehuis
Unblocks #495.
2018-06-27fix coroutine accessing freed memoryAndrew Kelley
closes #1164
2018-06-27fix comptime @tagName crashing sometimesAndrew Kelley
closes #1118
2018-06-27simplify comptime floating-point @divTruncBen Noordhuis
Replace a conditional ceil/floor call with an unconditional trunc call.
2018-06-27add f16 typeBen Noordhuis
Add support for half-precision floating point operations. Introduce `__extendhfsf2` and `__truncsfhf2` in std/special/compiler_rt. Add `__gnu_h2f_ieee` and `__gnu_f2h_ieee` as aliases that are used in Windows builds. The logic in std/special/compiler_rt/extendXfYf2.zig has been reworked and can now operate on 16 bits floating point types. `extendXfYf2()` and `truncXfYf2()` are marked `inline` to work around a not entirely understood stack alignment issue on Windows when calling the f16 versions of the builtins. closes #1122
2018-06-27scope variables in floating point cast testsBen Noordhuis
Fixes a bug where the result of a @floatCast wasn't actually checked; it was checking the result from the previous @floatCast.
2018-06-26fix crash for optional pointer to empty structAndrew Kelley
closes #1153
2018-06-22clean up self hosted main. delete unsupported commandsAndrew Kelley
2018-06-21add casting docs, __extenddftf2, and __extendsftf2Andrew Kelley
2018-06-21Add test caseIsaac Hier
2018-06-20fix f128 remainder division bugBen Noordhuis
The modulo operation computed rem(b+rem(a,b), b) which produces -1 for a=1 and b=2. Switch to a - b * trunc(a/b) which produces the expected result, 1. closes #1137
2018-06-20zig fmtAndrew Kelley
2018-06-20fix runtime fn ptr equality codegenAndrew Kelley
closes #1140
2018-06-19fix calling method with comptime pass-by-non-copyign-value self argAndrew Kelley
closes #1124
2018-06-19`@floatToInt` now has safety-checked undefined behaviorAndrew Kelley
when the integer part does not fit in the destination integer type * Also fix incorrect safety triggered for integer casting an `i32` to a `u7`. closes #1138 * adds compiler-rt function: `__floatuntidf`
2018-06-19Merge pull request #1136 from alexnask/typeinfo_improvementsAndrew Kelley
@typeInfo now uses optional types instead of @typeOf(undefined)
2018-06-19@typeInfo now uses optional types instead of @typeOf(undefined)Alexandros Naskos
2018-06-19remove enum to/from int casting syntax; add `@enumToInt`/`@intToEnum`Andrew Kelley
see #1061
2018-06-18remove error to/from int casting syntax; add `@errorToInt`/`@intToError`Andrew Kelley
See #1061
2018-06-18remove []u8 casting syntax. add `@bytesToSlice` and `@sliceToBytes`Andrew Kelley
See #1061
2018-06-18remove error set casting syntax. add `@errSetCast`Andrew Kelley
See #1061
2018-06-18fix compiler crash when using @intToFloat with float literalAndrew Kelley
closes #1132