summaryrefslogtreecommitdiff
path: root/test/fixedbugs/issue24491a.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/fixedbugs/issue24491a.go')
-rw-r--r--test/fixedbugs/issue24491a.go30
1 files changed, 0 insertions, 30 deletions
diff --git a/test/fixedbugs/issue24491a.go b/test/fixedbugs/issue24491a.go
index da734531a5..8accf8c0a3 100644
--- a/test/fixedbugs/issue24491a.go
+++ b/test/fixedbugs/issue24491a.go
@@ -48,30 +48,6 @@ func f() int {
return test("return", uintptr(setup()), uintptr(setup()), uintptr(setup()), uintptr(setup()))
}
-type S struct{}
-
-//go:noinline
-//go:uintptrescapes
-func (S) test(s string, p, q uintptr, rest ...uintptr) int {
- runtime.GC()
- runtime.GC()
-
- if *(*string)(unsafe.Pointer(p)) != "ok" {
- panic(s + ": p failed")
- }
- if *(*string)(unsafe.Pointer(q)) != "ok" {
- panic(s + ": q failed")
- }
- for _, r := range rest {
- if *(*string)(unsafe.Pointer(r)) != "ok" {
- panic(s + ": r[i] failed")
- }
- }
-
- done <- true
- return 0
-}
-
func main() {
test("normal", uintptr(setup()), uintptr(setup()), uintptr(setup()), uintptr(setup()))
<-done
@@ -84,12 +60,6 @@ func main() {
}()
<-done
- func() {
- s := &S{}
- defer s.test("method call", uintptr(setup()), uintptr(setup()))
- }()
- <-done
-
f()
<-done
}