2016-10-30 13:31:21 -06:00
|
|
|
// Copyright 2016 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 main
|
|
|
|
|
|
|
|
// // No C code required.
|
|
|
|
import "C"
|
|
|
|
|
2019-02-21 15:38:53 -07:00
|
|
|
import "testplugin/common"
|
2016-10-30 13:31:21 -06:00
|
|
|
|
|
|
|
func F() int { return 17 }
|
|
|
|
|
2016-09-23 16:39:31 -06:00
|
|
|
var FuncVar = func() {}
|
|
|
|
|
2016-10-30 13:31:21 -06:00
|
|
|
func ReadCommonX() int {
|
2016-09-23 16:39:31 -06:00
|
|
|
FuncVar()
|
2016-10-30 13:31:21 -06:00
|
|
|
return common.X
|
|
|
|
}
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
panic("plugin1.main called")
|
|
|
|
}
|