github.com/primecitizens/pcz/std@v0.2.1/core/abi/testdata/x.go (about) 1 // SPDX-License-Identifier: Apache-2.0 2 // Copyright 2023 The Prime Citizens 3 // 4 // Copyright 2021 The Go Authors. All rights reserved. 5 // Use of this source code is governed by a BSD-style 6 // license that can be found in the LICENSE file. 7 8 package x 9 10 import "github.com/primecitizens/pcz/std/core/abi" 11 12 func Fn0() // defined in assembly 13 14 func Fn1() {} 15 16 var FnExpr func() 17 18 func test() { 19 _ = abi.FuncPCABI0(Fn0) // line 16, no error 20 _ = abi.FuncPCABIInternal(Fn0) // line 17, error 21 _ = abi.FuncPCABI0(Fn1) // line 18, error 22 _ = abi.FuncPCABIInternal(Fn1) // line 19, no error 23 _ = abi.FuncPCABI0(FnExpr) // line 20, error 24 _ = abi.FuncPCABIInternal(FnExpr) // line 21, no error 25 }