1 // Copyright 2017 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.
14 p2, err := plugin.Open("issue22175_plugin1.so")
18 f, err := p2.Lookup("F")
22 got := f.(func() int)()
25 fmt.Fprintf(os.Stderr, "issue22175: F()=%d, want %d", got, want)