1 // Copyright 2015 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.
24 func Int32x(i int32) *int32 {
28 func (T) Add(out *P) {
29 out.V = p.Int32(x) // inlined, p.i.2 moved to heap
35 func F(s I) interface{} {
36 s.Add(out) // not inlined.
44 fmt.Sprint(new(int32))
46 println("Before, *resp.V=", *resp.V) // Trashes *resp.V in process of printing.
47 println("After, *resp.V=", *resp.V)
48 if got, want := *resp.V, int32(42); got != want {
49 fmt.Printf("FAIL, got %v, want %v", got, want)