summaryrefslogtreecommitdiffstats
path: root/misc/cgo/testshared/testdata/dep2
diff options
context:
space:
mode:
Diffstat (limited to 'misc/cgo/testshared/testdata/dep2')
-rw-r--r--misc/cgo/testshared/testdata/dep2/dep2.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/misc/cgo/testshared/testdata/dep2/dep2.go b/misc/cgo/testshared/testdata/dep2/dep2.go
new file mode 100644
index 0000000..94f38cf
--- /dev/null
+++ b/misc/cgo/testshared/testdata/dep2/dep2.go
@@ -0,0 +1,15 @@
+package dep2
+
+import "testshared/depBase"
+
+var W int = 1
+
+var hasProg depBase.HasProg
+
+type Dep2 struct {
+ depBase.Dep
+}
+
+func G() int {
+ return depBase.F() + 1
+}