1 // Copyright 2016 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
18 a.F1(uintptr(unsafe.Pointer(&buf[0])))
24 a.F2(uintptr(unsafe.Pointer(&buf[0])))
32 t.M1(uintptr(unsafe.Pointer(&buf[0])))
38 t.M2(uintptr(unsafe.Pointer(&buf[0])))
43 // Use different goroutines to force stack growth.
46 c := make(chan bool, 4)
52 fmt.Printf("F1: got %d, expected 42\n", b)
61 fmt.Printf("F2: got %d, expected 42\n", b)
70 fmt.Printf("M1: got %d, expected 42\n", b)
79 fmt.Printf("M2: got %d, expected 42\n", b)