1 // Copyright 2020 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.
5 // Issue 42579: methods of symbols exported from plugin must be live.
15 p, err := plugin.Open("plugin.so")
20 x, err := p.Lookup("X")
25 reflect.ValueOf(x).Elem().MethodByName("M").Call(nil)