File size: 328 Bytes
d7a5f2f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright 2024 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 p

import _ "unsafe"

// f1 is pushed from main.
//
//go:linkname f1
func f1()

// Push f2 to main.
//
//go:linkname f2 main.f2
func f2() {}

func F() { f1() }