╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ link.zig ─────────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭ find file ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╮ ╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │ │ │http│ ssh │ │ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╯ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
309 \\export fn callFoo() u8 { 310 \\ return foo(); 311 \\} 312 , 313 }); 314 315 const exe = case.addExecutable(.{ 316 .name = "test", 317 .zig_source_bytes = 318 \\extern "explicit-extern-lib-name-lib2" fn foo() u8; 319 \\extern fn callFoo() u8; 320 \\pub fn main() !u8 { 321 \\ return foo() + callFoo(); 322 \\} 323 , 324 }); 325 exe.root_module.linkLibrary(lib1); 326 exe.root_module.linkLibrary(lib2); 327 // exe.root_module.addLibraryPath(.{ 328 // .generated = .{ 329 // .index = lib2.getEmittedBin().generated.index, 330 // .up = 1, 331 // }, 332 // }); 333 exe.root_module.linkLibrary(lib3); 334 335 const run = case.addRunArtifact(exe); 336 run.addCheck(.{ .expect_term = .{ .exited = 84 } }); 337 } 338 } 339 340 const LinkContext = @import("tests.zig").LinkContext; 341 const std = @import("std"); 342