1 // +build linux,!ppc64,gc
4 // Copyright 2015 The Go Authors. All rights reserved.
5 // Use of this source code is governed by a BSD-style
6 // license that can be found in the LICENSE file.
8 // Test that a -B option is passed through when using both internal
9 // and external linking mode.
25 func test(linkmode string) {
26 out, err := exec.Command("go", "run", "-ldflags", "-B=0x12345678 -linkmode="+linkmode, filepath.Join("fixedbugs", "issue10607a.go")).CombinedOutput()
28 fmt.Printf("BUG: linkmode=%s %v\n%s\n", linkmode, err, out)