mirror of
https://github.com/burrowers/garble.git
synced 2025-12-24 12:58:05 +08:00
remove test linknames into std
As of Go 1.23, these are forbidden by https://go.dev/issue/67401. Updates #859.
This commit is contained in:
13
testdata/script/linkname.txtar
vendored
13
testdata/script/linkname.txtar
vendored
@@ -43,14 +43,6 @@ import (
|
||||
"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.
|
||||
//go:linkname obfuscatedFunc test/main/imported.ObfuscatedFuncImpl
|
||||
func obfuscatedFunc() string
|
||||
@@ -85,9 +77,6 @@ func renamedFunc() string
|
||||
func tagline() string
|
||||
|
||||
func main() {
|
||||
println(byteIndex("01234", '3'))
|
||||
println(interfaceEqual("Sephiroth", 7))
|
||||
|
||||
println(obfuscatedFunc())
|
||||
|
||||
r := imported.Receiver{Field: "field value"}
|
||||
@@ -157,8 +146,6 @@ func chungify() string {
|
||||
return "featuring Dante from the Devil May Cry series"
|
||||
}
|
||||
-- main.stderr --
|
||||
3
|
||||
false
|
||||
obfuscated func
|
||||
obfuscated method: field value
|
||||
unobfuscated method: field value
|
||||
|
||||
Reference in New Issue
Block a user