diff options
Diffstat (limited to 'libgo/misc/cgo/testshared/src/iface/main.go')
-rw-r--r-- | libgo/misc/cgo/testshared/src/iface/main.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libgo/misc/cgo/testshared/src/iface/main.go b/libgo/misc/cgo/testshared/src/iface/main.go new file mode 100644 index 00000000000..3d5b54e73b9 --- /dev/null +++ b/libgo/misc/cgo/testshared/src/iface/main.go @@ -0,0 +1,17 @@ +// Copyright 2017 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 + +import "iface_a" +import "iface_b" + +func main() { + if iface_a.F() != iface_b.F() { + panic("empty interfaces not equal") + } + if iface_a.G() != iface_b.G() { + panic("non-empty interfaces not equal") + } +} |