aboutsummaryrefslogtreecommitdiff
path: root/test/blank.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-10-19 19:27:40 -0700
committerRuss Cox <rsc@golang.org>2009-10-19 19:27:40 -0700
commit4c3a85d73a23eade387a5859f7d072aa1ef81dfb (patch)
treef2800343eb6c3fb03f604c88db3e150d81e65219 /test/blank.go
parent8fffa1d6988cb22fc608aa559ad841a1174b44d6 (diff)
downloadgo-4c3a85d73a23eade387a5859f7d072aa1ef81dfb.tar.gz
go-4c3a85d73a23eade387a5859f7d072aa1ef81dfb.zip
6g bug fixes:
* bug211 * embedded interfaces with lowercase methods * var _ = f() at top level R=ken OCL=35898 CL=35898
Diffstat (limited to 'test/blank.go')
-rw-r--r--test/blank.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/blank.go b/test/blank.go
index 634844352e..7b9d64257e 100644
--- a/test/blank.go
+++ b/test/blank.go
@@ -52,7 +52,11 @@ func i() int {
return 23;
}
+var _ = i();
+
func main() {
+ if call != "i" {panic("init did not run")}
+ call = "";
_, _ = f();
a, _ := f();
if a != 1 {panic(a)}