aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/bugs/3779.zig
AgeCommit message (Collapse)Author
2023-10-23rename behavior test to better describe what it doesAndrew Kelley
In general, let's not lean on GitHub issue numbers as having meaning. The goal of behavior tests is to produce a minimum set of tests that test 100% of the language.
2023-10-15spirv: update failing / passing testsRobin Voetter
Some tests are now failing due to debug info changes, some tests now pass due to improved compiler functionality.
2023-09-23spirv: enable passing testsRobin Voetter
2023-05-11setup spirv backend in behavior testsAli Chraghi
2022-12-10stage2: sparc64: Skip unimplemented testsKoakuma
2022-12-06remove references to stage1 in behavior testsAndrew Kelley
Good riddance.
2022-06-25stage2 ARM: implement basic intCast and error union wrappingjoachimschmidt557
2022-03-18organize behavior testsAndrew Kelley
* Identify the ones that are passing and stop skipping them. * Flatten out the main behavior.zig file and have each individual test disable itself if it is not passing.
2022-03-18bugs/3779: replace expectEqual*() with expect()Daniele Cocca
2022-03-18stage2: improve `@typeName`Andrew Kelley
* make it always return a fully qualified name. stage1 is inconsistent about this. * AstGen: fix anon_name_strategy to correctly be `func` when anon type creation happens in the operand of the return expression. * Sema: implement type names for the "function" naming strategy. * Put "enum", "union", "opaque", or "struct" in place of "anon" when creating respective anonymous Decl names. * std.testing: add `expectStringStartsWith`. Didn't end up using it after all. Also this enables the real test runner for stage2 LLVM backend (sans wasm32) since it works now.
2022-03-10Sema: if generic function evaluates to another generic function call it inlineVeikka Tuominen
```zig fn foo(a: anytype, b: @TypeOf(a)) void { _ = b; } test { // foo evaluates to `fn (type) void` and must be called inline foo(u32, u32); } ```
2021-07-15Fix "unused local constant" errorDaniele Cocca
Amends b009aca38a861f74fd5378db19c65db286ad397e. The PR predated the introduction of unused variable/constant checks, thus the build checks weren't reporting this failure until later when merged into master.
2021-07-15src: return a null-terminated sliceDaniele Cocca
2021-06-16embedFile: change notation from [X:0] to [N:0]Daniele Cocca
This is for consistency with the documentation on sentinel-terminated {arrays,slices,pointers} which already use `N` for a comptime-inferred size rather than `X`. Also adds a behavioral test to assert that a string literal is returned.
2021-06-16typeName: amend return type to string literalDaniele Cocca
This was already the case, but the documentation failed to point out that the returned value is of type `*const [N:0]u8`, i.e. that of a string literal. Also adds a behavioral test to assert that this is the case.
2021-06-16errorName: return a null-terminated sliceDaniele Cocca
2021-06-16tagName: return a null-terminated sliceDaniele Cocca