summaryrefslogtreecommitdiff
path: root/test/blank.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-09-09 16:59:41 -0700
committerRuss Cox <rsc@golang.org>2009-09-09 16:59:41 -0700
commit7c4d36117a9505b7e7ce661f9ada47ffad639a0f (patch)
tree26039b6a06ed1907cc84009bd025b8003f8f3f9a /test/blank.go
parent28232c1147e539aace097d0d0999829a9d7e912e (diff)
downloadgo-7c4d36117a9505b7e7ce661f9ada47ffad639a0f.tar.gz
a few more blank tests
R=ken OCL=34500 CL=34500
Diffstat (limited to 'test/blank.go')
-rw-r--r--test/blank.go11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/blank.go b/test/blank.go
index 4919841a4..634844352 100644
--- a/test/blank.go
+++ b/test/blank.go
@@ -6,12 +6,20 @@
package main
+import _ "fmt"
+
var call string
type T struct {
_, _, _ int;
}
+func (T) _() {
+}
+
+func (T) _() {
+}
+
const (
c0 = iota;
_;
@@ -44,8 +52,7 @@ func i() int {
return 23;
}
-func main()
-{
+func main() {
_, _ = f();
a, _ := f();
if a != 1 {panic(a)}