Source file src/cmd/link/testdata/dynimportvar/asm/a.go
1 // Copyright 2023 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 // This is a separate package because we cannot have Go 6 // assembly code and cgo code in the same package. 7 8 //go:build darwin 9 10 package asm 11 12 //go:cgo_import_dynamic libc_mach_task_self_ mach_task_self_ "/usr/lib/libSystem.B.dylib" 13 14 // load mach_task_self_ from assembly code 15 func Mach_task_self() uint32 16