aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/function_ptr_alignment.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.
2025-07-26aarch64: implement some safety checksJacob Young
Closes #24553
2024-03-17AstGen: disallow alignment on function typesJacob Young
A pointer type already has an alignment, so this information does not need to be duplicated on the function type. This already has precedence with addrspace which is already disallowed on function types for this reason. Also fixes `@TypeOf(&func)` to have the correct addrspace and alignment.
2023-11-19test: update cases to silence 'var is never mutated' errorsmlugg
2022-07-21Sema: fix fn pointer align disagrees with fn align errorAndrew Kelley
Check the specified function alignment rather than the effective function alignment.
2022-07-21constrain target/backend of new test casesAndrew Kelley
avoids testing stuff that doesn't work yet.
2022-07-21Sema: validate function pointer alignmentVeikka Tuominen