modernc.org/gc@v1.0.1-0.20240304020402-f0dba7c97c2b/testdata/errchk/test/fixedbugs/issue4964.dir/a.go (about) 1 // Copyright 2013 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. 4 5 package a 6 7 var global, global2 *int 8 9 type T struct { 10 Pointer *int 11 } 12 13 //go:noinline 14 func Store(t *T) { 15 global = t.Pointer 16 } 17 18 //go:noinline 19 func Store2(t *T) { 20 global2 = t.Pointer 21 } 22 23 func Get() *int { 24 return global 25 }