2016-10-30 15:31:21 -04: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 17:38:53 -05:00
|
|
|
import "testplugin/common"
|
2016-10-30 15:31:21 -04:00
|
|
|
|
|
|
|
|
func F() int { return 17 }
|
|
|
|
|
|
2016-09-24 08:39:31 +10:00
|
|
|
var FuncVar = func() {}
|
|
|
|
|
|
2016-10-30 15:31:21 -04:00
|
|
|
func ReadCommonX() int {
|
2016-09-24 08:39:31 +10:00
|
|
|
FuncVar()
|
2016-10-30 15:31:21 -04:00
|
|
|
return common.X
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
|
panic("plugin1.main called")
|
|
|
|
|
}
|