remove test linknames into std

As of Go 1.23, these are forbidden by https://go.dev/issue/67401.

Updates #859.
pull/876/head
Daniel Martí 7 months ago
parent 51ee956e90
commit 92a7b5fe8a

@ -43,14 +43,6 @@ import (
"test/main/imported" "test/main/imported"
) )
// A linkname to an external non-obfuscated func.
//go:linkname byteIndex strings.IndexByte
func byteIndex(s string, c byte) int
// A linkname to an external non-obfuscated non-exported func.
//go:linkname interfaceEqual os/exec.interfaceEqual
func interfaceEqual(a, b any) bool
// A linkname to an external obfuscated func. // A linkname to an external obfuscated func.
//go:linkname obfuscatedFunc test/main/imported.ObfuscatedFuncImpl //go:linkname obfuscatedFunc test/main/imported.ObfuscatedFuncImpl
func obfuscatedFunc() string func obfuscatedFunc() string
@ -85,9 +77,6 @@ func renamedFunc() string
func tagline() string func tagline() string
func main() { func main() {
println(byteIndex("01234", '3'))
println(interfaceEqual("Sephiroth", 7))
println(obfuscatedFunc()) println(obfuscatedFunc())
r := imported.Receiver{Field: "field value"} r := imported.Receiver{Field: "field value"}
@ -157,8 +146,6 @@ func chungify() string {
return "featuring Dante from the Devil May Cry series" return "featuring Dante from the Devil May Cry series"
} }
-- main.stderr -- -- main.stderr --
3
false
obfuscated func obfuscated func
obfuscated method: field value obfuscated method: field value
unobfuscated method: field value unobfuscated method: field value

Loading…
Cancel
Save