github.com/riscv/riscv-go@v0.0.0-20200123204226-124ebd6fcc8e/misc/cgo/testshared/src/dep2/dep2.go (about) 1 package dep2 2 3 import "depBase" 4 5 var W int = 1 6 7 var hasProg depBase.HasProg 8 9 type Dep2 struct { 10 depBase.Dep 11 } 12 13 func G() int { 14 return depBase.F() + 1 15 }