mirror of
https://github.com/ziglang/zig.git
synced 2025-12-17 03:33:06 +00:00
* Sema: implement linksection on functions * Implement function linksection in Sema. * Don't clobber function linksection/align/addrspace in Sema. * Fix copy-paste typo in tests. * Add a bunch of missing test_step.dependOn. * Fix checkInSymtab match. Closes #12546
6 lines
270 B
Zig
6 lines
270 B
Zig
export var test_global: u32 linksection("__DATA,__TestGlobal") = undefined;
|
|
export fn testFn() linksection("__TEXT,__TestFn") callconv(.C) void {
|
|
testGenericFn("A");
|
|
}
|
|
fn testGenericFn(comptime suffix: []const u8) linksection("__TEXT,__TestGenFn" ++ suffix) void {}
|