0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/test/behavior
Andrew Kelley e9fc58eab7 LLVM: handle extern function name collisions
Zig allows multiple extern functions with the same name, and the
backends have to handle this possibility.

For LLVM, we keep a sparse map of collisions, and then resolve them in
flushModule(). This introduces some technical debt that will have to be
resolved when adding incremental compilation support to the LLVM
backend.
History 2022-06-07 00:47:10 -04:00
..
bugs LLVM: handle extern function name collisions 2022-06-07 00:47:10 -04:00
hasdecl move behavior tests from test/stage1/ to test/ 2021-04-29 15:54:04 -07:00
import move behavior tests from test/stage1/ to test/ 2021-04-29 15:54:04 -07:00
namespace_depends_on_compile_var move behavior tests from test/stage1/ to test/ 2021-04-29 15:54:04 -07:00
pub_enum move behavior tests from test/stage1/ to test/ 2021-04-29 15:54:04 -07:00
usingnamespace std: fix regressions from this branch 2021-09-01 17:54:07 -07:00
align.zig Sema: fix compiler crash with comptime arithmetic involving @ptrToInt 2022-06-01 16:45:28 -07:00
alignof.zig x64: pass more behavior tests 2022-02-28 23:20:05 +01:00
array.zig Sema: fix initialization of array with comptime only elem type 2022-06-03 20:21:20 +03:00
asm.zig stage2: implement global assembly 2022-05-04 20:38:53 -07:00
async_fn.zig behavior tests: disable failing stage1 test 2022-03-23 14:06:07 -07:00
atomics.zig stage2: improve semantics of atomic operations 2022-05-04 17:34:16 -07:00
await_struct.zig behavior tests: disable failing stage1 test 2022-03-23 14:06:07 -07:00
basic.zig Sema: fix inline call of func using ret_ptr with comptime only type 2022-06-06 13:11:50 -07:00
bit_shifting.zig stage2 AArch64: Enable behavior testing 2022-02-14 22:33:01 +01:00
bitcast.zig stage2 AArch64: complete genTypedValue 2022-05-27 16:43:11 -04:00
bitreverse.zig stage2 AArch64: complete genTypedValue 2022-05-27 16:43:11 -04:00
bool.zig C backend: fix @boolToInt 2021-10-28 17:33:05 -07:00
byteswap.zig stage2 AArch64: complete genTypedValue 2022-05-27 16:43:11 -04:00
byval_arg_var.zig arm: lock dest register in shl_overflow so that we do not spill it 2022-05-07 22:53:17 +02:00
call.zig stage2: fix @call when used in a comptime or nosuspend block 2022-05-20 02:47:20 -07:00
cast.zig stage2 AArch64: complete genTypedValue 2022-05-27 16:43:11 -04:00
cast_int.zig organize behavior tests 2022-03-18 15:02:52 -07:00
comptime_memory.zig stage2 AArch64: complete genTypedValue 2022-05-27 16:43:11 -04:00
const_slice_child.zig Sema: implement @truncate for SIMD vectors 2022-03-15 15:09:48 -07:00
decltest.zig stage2: add decltests 2022-02-13 14:42:20 +02:00
defer.zig stage2 ARM: implement ret_load 2022-03-08 21:10:04 +01:00
enum.zig wasm: Enable passing behavior tests 2022-03-09 13:53:20 -07:00
error.zig stage2 AArch64: complete genTypedValue 2022-05-27 16:43:11 -04:00
eval.zig stage2 AArch64: complete genTypedValue 2022-05-27 16:43:11 -04:00
export.zig Sema: fix export with Internal linkage 2022-04-24 20:24:37 -07:00
export_self_referential_type_info.zig stage2: fix mem{set,cpy} for non comptime mutable pointers 2022-03-08 11:23:38 +02:00
field_parent_ptr.zig wasm: Enable passing behavior tests 2022-03-09 13:53:20 -07:00
floatop.zig clean up some behavior tests 2022-05-26 21:58:19 -07:00
fn.zig stage2 AArch64: complete genTypedValue 2022-05-27 16:43:11 -04:00
fn_delegation.zig stage2 AArch64: complete genTypedValue 2022-05-27 16:43:11 -04:00
fn_in_struct_in_comptime.zig Merge remote-tracking branch 'origin/master' into stage2-whole-file-astgen 2021-05-08 14:45:21 -07:00
for.zig CBE: fix C output after PR #11302, reenable tests 2022-03-29 02:28:20 -04:00
generics.zig stage2 AArch64: complete genTypedValue 2022-05-27 16:43:11 -04:00
hasdecl.zig Merge remote-tracking branch 'origin/master' into stage2-whole-file-astgen 2021-05-08 14:45:21 -07:00
hasfield.zig Sema: make @hasField support tuples too 2022-03-11 12:59:20 -07:00
if.zig stage2 AArch64: add more slice support 2022-03-05 11:31:51 +01:00
import.zig lint: duplicate import (#10519) 2022-01-07 00:06:06 -05:00
incomplete_struct_param_tld.zig stage2 ARM: implement ret_load 2022-03-08 21:10:04 +01:00
int128.zig wasm: enable 128bit integer behavior tests 2022-05-18 07:43:33 +02:00
int_div.zig CBE: implement mod, divFloor, divTrunc 2022-03-19 21:01:36 -04:00
inttoptr.zig stage2 AArch64: add more slice support 2022-03-05 11:31:51 +01:00
ir_block_deps.zig x64: pass more behavior tests 2022-02-28 23:20:05 +01:00
math.zig x64: re-enable behavior tests 2022-05-19 19:39:34 +02:00
maximum_minimum.zig wasm: Enable passing behavior tests 2022-04-02 21:54:01 +02:00
member_func.zig Port more behavior tests 2022-02-22 21:57:42 +01:00
merge_error_sets.zig CBE: enable more tests that are currently passing 2022-03-17 11:39:56 -07:00
muladd.zig enable newly passing behavior tests 2022-04-27 17:24:36 -07:00
namespace_depends_on_compile_var.zig CBE: enable more tests that are currently passing 2022-03-17 11:39:56 -07:00
null.zig CBE: enable more tests that are currently passing 2022-03-17 11:39:56 -07:00
optional.zig stage2 AArch64: complete genTypedValue 2022-05-27 16:43:11 -04:00
packed-struct.zig mark some more behavior tests as passing 2022-05-25 00:12:56 -07:00
pointers.zig stage2 AArch64: complete genTypedValue 2022-05-27 16:43:11 -04:00
popcount.zig wasm: enable 128bit integer behavior tests 2022-05-18 07:43:33 +02:00
prefetch.zig stage1: implement @prefetch() builtin 2021-12-11 00:29:31 +01:00
ptrcast.zig wasm: Write nops for padding debug info 2022-05-09 18:51:46 +02:00
pub_enum.zig Merge remote-tracking branch 'origin/master' into stage2-whole-file-astgen 2021-05-08 14:45:21 -07:00
ref_var_in_if_after_if_2nd_switch_prong.zig Port more behavior tests 2022-02-22 21:57:42 +01:00
reflection.zig LLVM: add extra padding to structs and tuples sometimes 2022-03-01 18:24:00 -07:00
saturating_arithmetic.zig organize behavior tests 2022-03-18 15:02:52 -07:00
select.zig sema: coerce inputs to vectors in zirSelect 2022-03-25 19:14:11 +01:00
shuffle.zig mark some more behavior tests as passing 2022-05-25 00:12:56 -07:00
sizeof_and_typeof.zig stage2 AArch64: complete genTypedValue 2022-05-27 16:43:11 -04:00
slice.zig stage2 AArch64: complete genTypedValue 2022-05-27 16:43:11 -04:00
slice_sentinel_comptime.zig std, src, doc, test: remove unused variables 2021-06-21 17:03:03 -07:00
src.zig stage2: introduce anonymous struct literals 2022-03-01 23:46:57 -07:00
struct.zig Sema: validate equality on store to comptime field 2022-06-06 13:11:50 -07:00
struct_contains_null_ptr_itself.zig stage2 ARM: genSetStack for stack_argument_offset 2022-03-16 20:19:58 +01:00
struct_contains_slice_of_itself.zig Sema: introduce a mechanism in Value to resolve types 2022-03-22 15:45:59 -07:00
switch.zig stage2 ARM: introduce support for basic switch expressions 2022-06-04 19:58:34 +02:00
switch_prong_err_enum.zig wasm: Enable passing behavior tests 2022-03-09 13:53:20 -07:00
switch_prong_implicit_cast.zig wasm: Enable passing behavior tests 2022-03-09 13:53:20 -07:00
this.zig stage2 AArch64: add more slice support 2022-03-05 11:31:51 +01:00
translate_c_macros.h translate-c: use nested scope for comma operator in macros 2022-03-08 20:38:51 +02:00
translate_c_macros.zig organize behavior tests 2022-03-18 15:02:52 -07:00
truncate.zig stage2 AArch64: Add ldrsb, ldrsh instructions 2022-04-19 22:40:48 +02:00
try.zig stage2 AArch64: add more slice support 2022-03-05 11:31:51 +01:00
tuple.zig AstGen: improve generated Zir for array init exprs 2022-05-29 13:19:03 +03:00
type.zig stage2 AArch64: complete genTypedValue 2022-05-27 16:43:11 -04:00
type_info.zig stage2 AArch64: complete genTypedValue 2022-05-27 16:43:11 -04:00
typename.zig wasm: Enable all passing tests 2022-03-23 21:40:33 +01:00
undefined.zig stage2: improve @typeName 2022-03-18 00:12:22 -07:00
underscore.zig stage2 ARM: fix recursive fibonacci 2022-05-22 21:02:32 +02:00
union.zig stage2 AArch64: complete genTypedValue 2022-05-27 16:43:11 -04:00
union_with_members.zig organize behavior tests 2022-03-18 15:02:52 -07:00
usingnamespace.zig Sema: fix usingnamespace decl Value in wrong arena 2022-03-30 17:24:01 -07:00
var_args.zig CBE: enable more tests that are currently passing 2022-03-17 11:39:56 -07:00
vector.zig stage2: add more vector overflow tests 2022-05-16 13:55:26 -07:00
void.zig stage2 AArch64: complete genTypedValue 2022-05-27 16:43:11 -04:00
wasm.zig stage2: cleanups to wasm memory intrinsics 2022-03-03 18:31:55 -07:00
while.zig wasm: Improve shl_with_overflow 2022-05-16 13:55:26 -07:00
widening.zig wasm: enable 128bit integer behavior tests 2022-05-18 07:43:33 +02:00
wrapping_arithmetic.zig stage1: fix saturating arithmetic producing incorrect results on type comptime_int, allow saturating left shift on type comptime int 2022-01-29 18:12:28 +02:00