]> Cypherpunks.ru repositories - gostls13.git/blobdiff - test/live_uintptrkeepalive.go
cmd/compile/internal/ir: add Func.DeclareParams
[gostls13.git] / test / live_uintptrkeepalive.go
index 566734e5051c7bba0dbcd080b535ca1621877037..f681f683fcfba3fa81cf1d5fc8bce8ed830b2b46 100644 (file)
@@ -1,5 +1,6 @@
 // errorcheck -0 -m -live -std
 
+//go:build !windows && !js && !wasip1
 // +build !windows,!js,!wasip1
 
 // Copyright 2015 The Go Authors. All rights reserved.
@@ -22,7 +23,7 @@ import (
        "unsafe"
 )
 
-func implicit(uintptr) // ERROR "assuming arg#1 is unsafe uintptr"
+func implicit(uintptr) // ERROR "assuming ~p0 is unsafe uintptr"
 
 //go:uintptrkeepalive
 //go:nosplit
@@ -47,13 +48,13 @@ func autotmpSyscall() { // ERROR "can inline autotmpSyscall"
 func localImplicit() { // ERROR "can inline localImplicit"
        var t int
        p := unsafe.Pointer(&t)
-       implicit(uintptr(p))           // ERROR "live at call to implicit: .?autotmp" "stack object .autotmp_[0-9]+ unsafe.Pointer$"
+       implicit(uintptr(p)) // ERROR "live at call to implicit: .?autotmp" "stack object .autotmp_[0-9]+ unsafe.Pointer$"
 }
 
 func localExplicit() { // ERROR "can inline localExplicit"
        var t int
        p := unsafe.Pointer(&t)
-       explicit(uintptr(p))           // ERROR "live at call to explicit: .?autotmp" "stack object .autotmp_[0-9]+ unsafe.Pointer$"
+       explicit(uintptr(p)) // ERROR "live at call to explicit: .?autotmp" "stack object .autotmp_[0-9]+ unsafe.Pointer$"
 }
 
 func localSyscall() { // ERROR "can inline localSyscall"