aboutsummaryrefslogtreecommitdiff
path: root/test/standalone/extern/main.zig
AgeCommit message (Collapse)Author
2025-03-05Remove uses of deprecated callconv aliasesLinus Groh
2024-10-22tests: add tests for is_dll_import externskcbanner
- tests/standalone/extern wasn't running its test step - add compile error tests for thread local / dll import @extern in a comptime scope
2023-11-19test: update remaining code to fix 'var is never mutated' errorsmlugg
2023-03-12Sema: @extern fixesmlugg
* There was an edge case where the arena could be destroyed twice on error: once from the arena itself and once from the decl destruction. * The type of the created decl was incorrect (it should have been the pointer child type), but it's not required anyway, so it's now just initialized to anyopaque (which more accurately reflects what's actually at that memory, since e.g. [*]T may correspond to nothing). * A runtime bitcast of the pointer was performed, meaning @extern didn't work at comptime. This is unnecessary: the decl_ref can just be initialized with the correct pointer type.