3 // Copyright 2012 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
8 // Method calls are ignored when deciding initialization
15 func (r T) Method1() int { return a }
16 func (r T) Method2() int { return b }
18 // dummy1 and dummy2 must be initialized after a and b.
19 var dummy1 = T(0).Method1()
20 var dummy2 = T.Method2(0)
22 // Use a function call to force generating code.
26 func identity(a int) int { return a }