mirror of
https://github.com/golang/go
synced 2024-11-22 15:54:52 -07:00
fad0a14d92
New test containing code that caused a gccgo compiler failure. Updates #34503. Change-Id: Id895a1e1249062b7fb147e54bcaa657e774ed0d9 Reviewed-on: https://go-review.googlesource.com/c/go/+/197217 Run-TryBot: Than McIntosh <thanm@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Cherry Zhang <cherryyz@google.com>
16 lines
294 B
Go
16 lines
294 B
Go
// Copyright 2019 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package a
|
|
|
|
import "unsafe"
|
|
|
|
type HookFunc func(x uint64)
|
|
|
|
var HookV unsafe.Pointer
|
|
|
|
func Hook(x uint64) {
|
|
(*(*HookFunc)(HookV))(x)
|
|
}
|