aboutsummaryrefslogtreecommitdiff
path: root/src/go/internal/gcimporter/testdata/g.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/go/internal/gcimporter/testdata/g.go')
-rw-r--r--src/go/internal/gcimporter/testdata/g.go23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/go/internal/gcimporter/testdata/g.go b/src/go/internal/gcimporter/testdata/g.go
new file mode 100644
index 0000000000..301c1429e6
--- /dev/null
+++ b/src/go/internal/gcimporter/testdata/g.go
@@ -0,0 +1,23 @@
+// Copyright 2016 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.
+
+// Input for TestTypeNamingOrder
+
+// ensures that the order in which "type A B" declarations are
+// processed is correct; this was a problem for unified IR imports.
+
+package g
+
+type Client struct {
+ common service
+ A *AService
+ B *BService
+}
+
+type service struct {
+ client *Client
+}
+
+type AService service
+type BService service