| ... | ... | @@ -916,7 +916,7 @@ fn testLinksection(b: *Build, opts: Options) *Step { |
| 916 | 916 | |
| 917 | 917 | if (opts.optimize == .Debug) { |
| 918 | 918 | check.checkInSymtab(); |
| 919 | | check.checkContains("(__TEXT,__TestGenFnA) _a.testGenericFn__anon_"); |
| 919 | check.checkContains("(__TEXT,__TestGenFnA) _main.testGenericFn__anon_"); |
| 920 | 920 | } |
| 921 | 921 | |
| 922 | 922 | test_step.dependOn(&check.step); |
| ... | ... | @@ -2519,11 +2519,20 @@ fn testUnresolvedError(b: *Build, opts: Options) *Step { |
| 2519 | 2519 | }); |
| 2520 | 2520 | exe.addObject(obj); |
| 2521 | 2521 | |
| 2522 | | expectLinkErrors(exe, test_step, .{ .exact = &.{ |
| 2523 | | "error: undefined symbol: _foo", |
| 2524 | | "note: referenced by /?/a.o:_bar", |
| 2525 | | "note: referenced by /?/main.o:_a.main", |
| 2526 | | } }); |
| 2522 | // TODO order should match across backends if possible |
| 2523 | if (opts.use_llvm) { |
| 2524 | expectLinkErrors(exe, test_step, .{ .exact = &.{ |
| 2525 | "error: undefined symbol: _foo", |
| 2526 | "note: referenced by /?/a.o:_bar", |
| 2527 | "note: referenced by /?/main.o:_main.main", |
| 2528 | } }); |
| 2529 | } else { |
| 2530 | expectLinkErrors(exe, test_step, .{ .exact = &.{ |
| 2531 | "error: undefined symbol: _foo", |
| 2532 | "note: referenced by /?/main.o:_main.main", |
| 2533 | "note: referenced by /?/a.o:__TEXT$__text_zig", |
| 2534 | } }); |
| 2535 | } |
| 2527 | 2536 | |
| 2528 | 2537 | return test_step; |
| 2529 | 2538 | } |