aboutsummaryrefslogtreecommitdiff
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
commitaa6e81dd719271b605be40ab277daeba85541e05 (patch)
tree26039b6a06ed1907cc84009bd025b8003f8f3f9a /test/blank.go
parent079e038acababc638633db4041a4a38026c7c3fd (diff)
downloadgo-aa6e81dd719271b605be40ab277daeba85541e05.tar.gz
go-aa6e81dd719271b605be40ab277daeba85541e05.zip
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 4919841a42..634844352e 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)}