| 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 simplepkg is imported from testpkg and tests two |
| 6 | // corner cases. |
| 7 | // First: simplepkg itself contains no (exported) functions |
| 8 | // or methods and so its generated Go package must not import |
| 9 | // it. |
| 10 | // |
| 11 | // Second: even though testpkg imports simplepkg, testpkg's |
| 12 | // generated Go package ends up not referencing simplepkg and |
| 13 | // must not import it. |
| 14 | package simplepkg |
| 15 | |
| 16 | type S struct{} |