1
0
mirror of https://github.com/golang/go synced 2024-11-26 06:38:00 -07:00
go/test/fixedbugs/issue34503.dir/a.go
Than McIntosh fad0a14d92 test: add testcase for gccgo compiler buglet
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>
2019-09-25 18:10:57 +00:00

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