func TestUndefinedRelocErrors(t *testing.T) { … } const carchiveSrcText … func TestArchiveBuildInvokeWithExec(t *testing.T) { … } func TestLargeTextSectionSplitting(t *testing.T) { … } func TestWindowsBuildmodeCSharedASLR(t *testing.T) { … } func testWindowsBuildmodeCSharedASLR(t *testing.T, useASLR bool) { … } // TestMemProfileCheck tests that cmd/link sets // runtime.disableMemoryProfiling if the runtime.MemProfile // symbol is unreachable after deadcode (and not dynlinking). // The runtime then uses that to set the default value of // runtime.MemProfileRate, which this test checks. func TestMemProfileCheck(t *testing.T) { … } func TestRISCVTrampolines(t *testing.T) { … }