Source file misc/cgo/testplugin/altpath/testdata/plugin-mismatch/main.go
1 // Copyright 2016 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. 4 5 package main 6 7 // // No C code required. 8 import "C" 9 10 // The common package imported here does not match the common package 11 // imported by plugin1. A program that attempts to load plugin1 and 12 // plugin-mismatch should produce an error. 13 import "testplugin/common" 14 15 func ReadCommonX() int { 16 return common.X 17 } 18