Source file
test/fixedbugs/issue10607.go
1
2
3
4
5
6
7
8
9
10
11
12 package main
13
14 import (
15 "fmt"
16 "os"
17 "os/exec"
18 "path/filepath"
19 )
20
21 func main() {
22 test("internal")
23 test("external")
24 }
25
26 func test(linkmode string) {
27 out, err := exec.Command("go", "run", "-ldflags", "-B=0x12345678 -linkmode="+linkmode, filepath.Join("fixedbugs", "issue10607a.go")).CombinedOutput()
28 if err != nil {
29 fmt.Printf("BUG: linkmode=%s %v\n%s\n", linkmode, err, out)
30 os.Exit(1)
31 }
32 }
33
View as plain text