19 lines
968 B
Plaintext
19 lines
968 B
Plaintext
// #80/#84 -T coexist — a user `fn run` COEXISTS with lib/test's bound
|
|
// runner `run` (the synth main's callee). Once `ww test -c` bundles
|
|
// lib/test, the synth `use test;` keys lib/test's `run` under module
|
|
// "test" (#80: prepended before binding) and the user's `package main;`
|
|
// `run` mangles to a DISTINCT `main.run` (#84/#24a) — no duplicate. Both
|
|
// stages accept under -T and the synth runner runs the @test to exit 0;
|
|
// the user `run` must NOT hijack the entry. Pre-#80 this loud-rejected
|
|
// "duplicate fn run". The gate (910/997 coexist_run) static-label-counts
|
|
// the -T asm — exactly 1 `TEXT main.run` (user) + 1 `TEXT test.run` (lib
|
|
// runner) — pinning #84 distinctness here in the REAL @test/-T path (a
|
|
// dead-dup regression yields 0x main.run / 2x test.run). General
|
|
// callability of the user run is gated separately by test/xmod/collide_test.ww.
|
|
package main;
|
|
fn run() i32 = { return 9; };
|
|
|
|
@test fn t_one() void = {
|
|
assert(1 == 1);
|
|
};
|