go/src/cmd/link/dwarf_test.go

// TestMain allows this test binary to run as a -toolexec wrapper for
// the 'go' command. If LINK_TEST_TOOLEXEC is set, TestMain runs the
// binary as if it were cmd/link, and otherwise runs the requested
// tool as a subprocess.
//
// This allows the test to verify the behavior of the current contents of the
// cmd/link package even if the installed cmd/link binary is stale.
func TestMain(m *testing.M) {}

var testLinker

func testDWARF(t *testing.T, buildmode string, expectDWARF bool, env ...string) {}

func TestDWARF(t *testing.T) {}

func TestDWARFiOS(t *testing.T) {}