summaryrefslogtreecommitdiff
path: root/test/ken/ptrfun.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/ken/ptrfun.go')
-rw-r--r--test/ken/ptrfun.go14
1 files changed, 4 insertions, 10 deletions
diff --git a/test/ken/ptrfun.go b/test/ken/ptrfun.go
index 111ac61bb..6739ba33a 100644
--- a/test/ken/ptrfun.go
+++ b/test/ken/ptrfun.go
@@ -7,21 +7,17 @@
package main
-type C struct
-{
+type C struct {
a int;
x func(p *C)int;
}
-func
-(this *C) f()int
-{
+func (this *C) f()int {
return this.a;
}
func
-main()
-{
+main() {
var v int;
var c *C;
@@ -39,9 +35,7 @@ main()
if v != 6 { panic(v); }
}
-func
-g(p *C)int
-{
+func g(p *C)int {
var v int;
v = p.a;