aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/switch_on_slice.zig
AgeCommit message (Collapse)Author
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.
2023-11-19test: update cases to silence 'var is never mutated' errorsmlugg
2022-12-03AstGen: add error for invalid string comparisonsVeikka Tuominen
These operations are allowed because the string literals are just pointers but they produce unexpected results. These errors prevent beginners from shooting themselves in the foot while still allowing advanced users to circumvent them if they desire to do so. Closes #8290
2022-08-28Sema: add error for switch on sliceVeikka Tuominen
Closes #12651