summaryrefslogtreecommitdiff
path: root/usr/gri/pretty/selftest0.go
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2008-10-31 14:27:34 -0700
committerRobert Griesemer <gri@golang.org>2008-10-31 14:27:34 -0700
commit9ba2767e2e37c0405cd197d2c9bf11fa81dc9c41 (patch)
tree54e72a4024713f3b1c85333b53be4787a222b0e1 /usr/gri/pretty/selftest0.go
parent068dc3465b9085dad75fddc45465181c24971545 (diff)
downloadgolang-9ba2767e2e37c0405cd197d2c9bf11fa81dc9c41.tar.gz
- handle field tags in pretty printer
R=r OCL=18264 CL=18264
Diffstat (limited to 'usr/gri/pretty/selftest0.go')
-rw-r--r--usr/gri/pretty/selftest0.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/usr/gri/pretty/selftest0.go b/usr/gri/pretty/selftest0.go
new file mode 100644
index 000000000..09b1283db
--- /dev/null
+++ b/usr/gri/pretty/selftest0.go
@@ -0,0 +1,11 @@
+// Copyright 2009 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.
+
+package main
+
+type Proto struct {
+ a int "a tag";
+ b, c, d *Proto "bcd" "tag";
+ *Proto "proto tag"
+}