Source file src/cmd/cgo/internal/testshared/testdata/dep2/dep2.go

     1  package dep2
     2  
     3  import "testshared/depBase"
     4  
     5  func init() {
     6  	if !depBase.Initialized {
     7  		panic("depBase not initialized")
     8  	}
     9  }
    10  
    11  var W int = 1
    12  
    13  var hasProg depBase.HasProg
    14  
    15  type Dep2 struct {
    16  	depBase.Dep
    17  }
    18  
    19  func G() int {
    20  	return depBase.F() + 1
    21  }
    22  

View as plain text