aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2025-09-17fix handling of comptime-only union fields in `Type.getUnionLayout` (#25182)Silver
Fixes #25180
2025-09-17Merge pull request #25197 from rootbeer/24380-flaky-sigset-testAndrew Kelley
Re-enable std.posix "sigset_t bits" test
2025-09-17Elf: implement `linksection`Jacob Young
Closes #24330
2025-09-17Merge pull request #25201 from jacobly0/x86_64-addsatAndrew Kelley
x86_64: fix strictness edge cases in `+|`
2025-09-16test: move glibc_compat from link to standalone testsAlex Rønne Petersen
This is not really testing the linker.
2025-09-16test: remove @cImport usage in interdependent_static_c_libsAlex Rønne Petersen
2025-09-16test: pull tests in test/cases/llvm/ up to test/cases/Alex Rønne Petersen
There is nothing inherently LLVM-specific about any of these.
2025-09-16test: delete old stage1 compile_errors testsAlex Rønne Petersen
generic_function_returning_opaque_type.zig was salvaged as it's still worth having.
2025-09-16test: rename backend=stage2 to backend=selfhosted, and add backend=autoAlex Rønne Petersen
backend=auto (now the default if backend is omitted) means to let the compiler pick whatever backend it wants as the default. This is important for platforms where we don't yet have a self-hosted backend, such as loongarch64. Also purge a bunch of redundant target=native.
2025-09-16test: rename issue_8550 standalone test to compile_asmAlex Rønne Petersen
2025-09-16test: remove test-compare-output and test-asm-link testsAlex Rønne Petersen
These were low value and unfocused tests. We already have coverage of the important aspects of these tests elsewhere. Additionally, there was really no need for these to have their own test harness.
2025-09-15frontend: fix reference tracking through coerced function bodiesmlugg
This bug was manifesting for user as a nasty link error because they were calling their application's main entry point as a coerced function, which essentially broke reference tracking for the entire ZCU, causing exported symbols to silently not get exported. I've been a little unsure about how coerced functions should interact with the unit graph before, but the solution is actually really obvious now: they shouldn't! `Sema` is now responsible for unwrapping possibly-coerced functions *before* queuing analysis or marking unit references. This makes the reference graph optimal (there are no redundant edges representing coerced versions of the same function) and simplifies logic elsewhere at the expense of just a few lines in Sema.
2025-09-13std.math.big.int: normalize zero result for small multiplicationsmlugg
Resolves: #25221
2025-09-11Fix standalone test simple/cat/main.zig after Writergate update (#25188)Sardorbek Imomaliev
* Make cat in test/standalone/simple working again - Fixes: zig/0.15.1/lib/zig/std/Io/Writer.zig:939:11: 0x1049aef63 in sendFileAll (nclip) assert(w.buffer.len > 0); - because we are no using non zero buffers for stdout - "do not forget to flush" * replace std.fs with fs because we are already importing it
2025-09-10x86_64: delete usages of avx2 `vpack?s??`Jacob Young
This instruction actually has fairly useless semantics, and even the cases that were semantically correct could save 1 cycle of latency by using a different sequnce involving the avx version instead. Closes #25174
2025-09-10x86_64: fix strictness edge cases in `+|`Jacob Young
Closes #25145
2025-09-09standalone posix tests for sigactionPat Tullmann
Fixes #24380
2025-09-09standalone posix tests for relative path linkingPat Tullmann
2025-09-09standalone posix test for env varsPat Tullmann
2025-09-09standalone posix test for current working directoryPat Tullmann
2025-09-09standalone posix tests: add skeletonPat Tullmann
Add build.zig, README and empty test files.
2025-09-07add compile error test caseAndrew Kelley
2025-09-07behavior tests: remove one dependency on std libAndrew Kelley
2025-09-07wasm backend: disable failing behavior testsAndrew Kelley
2025-09-05disable failing behavior test on stage2_aarch64Andrew Kelley
2025-09-05add compile error test case for new errorAndrew Kelley
2025-09-05behavior tests: update for new requirementAndrew Kelley
packed union fields must all have matching bit sizes
2025-09-04Reenable vector tests for armeb/thumbebLuna Schwalbe
https://github.com/ziglang/zig/issues/22060 has been fixed by upstream.
2025-09-03Revert "test: disable non-native loongarch64 behavior and std tests"Alex Rønne Petersen
This reverts commit f4ed35f800396f12c7cd6aa1f70cf2555ddf7c84. This should no longer be needed now that stack traces are disabled on loongarch. closes #24405
2025-08-31delete behavior test that depends on std.fmtAndrew Kelley
behavior tests should have minimal dependency on std
2025-08-30Merge pull request #25077 from ziglang/GenericReaderAndrew Kelley
std.Io: delete GenericReader, AnyReader, FixedBufferStream; and related API breakage
2025-08-30child process test: preemptively use streaming modeAndrew Kelley
works around #24984
2025-08-30update tools and other miscellaneous things to new APIsAndrew Kelley
2025-08-30upgrade more old API usesAndrew Kelley
2025-08-30test: disable some varargs behavior tests on RISC-V due to LLVM 21 regressionAlex Rønne Petersen
https://github.com/ziglang/zig/issues/25064
2025-08-30test: use -Wno-unterminated-string-initialization for cbe testsAlex Rønne Petersen
https://github.com/llvm/llvm-project/issues/153314
2025-08-30test: re-enable a bunch of vector behavior tests on hexagonAlex Rønne Petersen
2025-08-30test: use long calls for hexagon-linux module testsAlex Rønne Petersen
2025-08-30test: expand C ABI test coverage to hexagon-linux-muslAlex Rønne Petersen
2025-08-29std.Io: delete GenericReaderAndrew Kelley
and delete deprecated alias std.io
2025-08-29Merge pull request #25036 from ziglang/GenericWriterAndrew Kelley
std.Io: delete GenericWriter, AnyWriter, and null_writer
2025-08-29LLVM backend:fix align 1 sret parameter load returnedAndrew Kelley
closes #25067
2025-08-28update more to avoid GenericWriterAndrew Kelley
2025-08-28behavior tests: remove "variadic functions" dependency on std libAndrew Kelley
2025-08-28update GenericWriter usage found by test-casesAndrew Kelley
2025-08-28AstGen: forward result type through unary float builtinsDavid Rubin
Uses a new `float_op_result_ty` ZIR instruction tag.
2025-08-28std.debug: remove `@frameAddress()` "UAF"mlugg
We can't call `@frameAddress()` and then immediately `return`! That invalidates the frame. This *usually* isn't a problem, because the stack walk `next` call will *probably* have a stack frame and it will *probably* be at the exact same address, but neither of those is a guarantee. On powerpc, presumably some unfortunate inlining was going on, so this frame was indeed invalidated when we started walking frames. We need to explicitly pass `@frameAddress` into any function which will return before we actually walk the stack. Pretty simple patch. Resolves: #24970
2025-08-26std.Target: add vita osMaciej 'vesim' Kuliński
Co-authored-by: Alex Rønne Petersen <alex@alexrp.com>
2025-08-25start adding big endian RISC-V supportAlex Rønne Petersen
The big endian RISC-V effort is mostly driven by MIPS (the company) which is pivoting to RISC-V, and presumably needs a big endian variant to fill the niche that big endian MIPS (the ISA) did. GCC already supports these targets, but LLVM support will only appear in 22; this commit just adds the necessary target knowledge and checks on our end.
2025-08-22test(llvm_targets): remove unused thumb-3dsGasInfinity