Source file src/cmd/link/testdata/linkname/builtin.go

     1  // Copyright 2024 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 builtin symbols (that is not already linknamed,
     6  // e.g. mapaccess1) is not allowed.
     7  
     8  package main
     9  
    10  import "unsafe"
    11  
    12  func main() {
    13  	mapaccess1(nil, nil, nil)
    14  }
    15  
    16  //go:linkname mapaccess1 runtime.mapaccess1
    17  func mapaccess1(t, m, k unsafe.Pointer) unsafe.Pointer
    18  

View as plain text