mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.link] cmd: default to new object files
Switch the default to new object files. Internal linking cgo is disabled for now, as it does not work yet in newobj mode. Shared libraries are also broken. Disable some tests that are known broken for now. Change-Id: I8ca74793423861d607a2aa7b0d89a4f4d4ca7671 Reviewed-on: https://go-review.googlesource.com/c/go/+/200161 Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Jeremy Faller <jeremy@golang.org>
This commit is contained in:
parent
c9470b0483
commit
5caac2f73e
11 changed files with 32 additions and 13 deletions
|
|
@ -29,4 +29,12 @@ func main() {
|
|||
fmt.Println(overwrite)
|
||||
fmt.Println(overwritecopy)
|
||||
fmt.Println(arraycopy[1])
|
||||
|
||||
// Check non-string symbols are not overwritten.
|
||||
// This also make them used.
|
||||
// TODO: decide if we need to issue an error if -X
|
||||
// is applied to a non-string unreachable symbol.
|
||||
if b || x != 0 {
|
||||
panic("b or x overwritten")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue