diff options
author | Rob Pike <r@golang.org> | 2008-08-11 22:07:49 -0700 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2008-08-11 22:07:49 -0700 |
commit | d4f4656470e56d7d4dc35ecef1841f989745b24f (patch) | |
tree | 9d0faf1d96579f8c9fb0321586cab7c5149ccdf1 /test/ken/ptrvar.go | |
parent | df89d5ea8f7e8d7601dc176b6544206a68b1fe09 (diff) | |
download | go-d4f4656470e56d7d4dc35ecef1841f989745b24f.tar.gz |
fix bug depot:
1) fix print statements, panic statements (parentheses required)
2) len is now allowed as a var name (bug053)
R=gri
OCL=14106
CL=14106
Diffstat (limited to 'test/ken/ptrvar.go')
-rw-r--r-- | test/ken/ptrvar.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ken/ptrvar.go b/test/ken/ptrvar.go index c2e2d611d..0e3452f0a 100644 --- a/test/ken/ptrvar.go +++ b/test/ken/ptrvar.go @@ -34,8 +34,8 @@ main() s2.d.c = 23; s2.d.d = 20; - if(s2.d.c != 23) { panic 1; } - if(g2.d.c != 23) { panic 2; } + if(s2.d.c != 23) { panic(1); } + if(g2.d.c != 23) { panic(2); } x = s1.a + s1.b + @@ -50,5 +50,5 @@ main() s2.d.c + s2.d.d; - if(x != 121) { panic x; } + if(x != 121) { panic(x); } } |