0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/test
Michael Dusan 3464351d1e stage1: fix ir_resolve_str() to return slice
`ir_resolve_str()` bug returns array expression even when when sliced
to a lesser length. Fix is to return array if slice.len == array.len,
otherwise return slice.

Bug report use-case is based on one builtin function. However, at least
the following builtins were exposed to the bug:

    `@byteOffsetOf`
    `@cDefine`
    `@cImport`
    `@cInclude`
    `@cUndef`
    `@compileError`
    `@embedFile`
    `@export`
    `@fieldParentPtr`
    `@hasDecl`
    `@hasField`
    `@import`
    `@unionInit`

closes #3384
History 2019-10-10 10:20:04 -04:00
..
stage1 stage1: fix ir_resolve_str() to return slice 2019-10-10 10:20:04 -04:00
stage2 Recursive rewrite of stage2 parser, part 3 2019-05-12 02:01:45 -07:00
standalone Get more of the tests passing for FreeBSD (#3197) 2019-09-10 14:50:54 -04:00
assemble_and_link.zig use * for pointer type instead of & 2018-05-31 17:28:07 -04:00
cli.zig Create user-specified output-dir 2019-09-24 00:20:29 -04:00
compare_output.zig std/fmt.zig: Pass full options struct to all internal functions 2019-08-19 22:15:15 +12:00
compile_errors.zig stage1: fix root top-level-struct typename 2019-10-09 17:36:13 -04:00
gen_h.zig gen-h: do not output visibility macros when the build is static 2019-05-25 14:17:59 +02:00
runtime_safety.zig runtime safety for noasync function calls 2019-09-06 13:08:44 -04:00
stack_traces.zig test-stack-traces: add FreeBSD 2019-09-09 00:25:21 -04:00
standalone.zig retire the example/ folder, rename test-build-examples to "standalone" 2019-07-16 12:15:46 -04:00
tests.zig Enable mipsel+libc tests on CI 2019-09-27 18:44:49 +02:00
translate_c.zig fix escape sequence rendering 2019-07-23 14:49:19 -04:00