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

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

View as plain text