Debian Codegraph @

src/cmd/link/testdata/linkname/addmoduledata.go

raw
1 // Copyright 2025 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 // Linkname runtime.addmoduledata is not allowed.
6
7 package main
8
9 import (
10 _ "unsafe"
11 )
12
13 //go:linkname addmoduledata runtime.addmoduledata
14 func addmoduledata()
15
16 func main() {
17 addmoduledata()
18 }