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

     1  // Copyright 2019 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  import "unsafe"
     8  
     9  type HookFunc func(x uint64)
    10  
    11  var HookV unsafe.Pointer
    12  
    13  func Hook(x uint64) {
    14  	(*(*HookFunc)(HookV))(x)
    15  }
    16  

View as plain text