Source file test/fixedbugs/issue4964.dir/a.go

     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  }
    26  

View as plain text