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.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ken/ptrfun.go b/test/ken/ptrfun.go
index 70f45dfc7..bfec64ff9 100644
--- a/test/ken/ptrfun.go
+++ b/test/ken/ptrfun.go
@@ -32,13 +32,13 @@ main()
c.x = &g;
v = g(c);
- if v != 6 { panic v; }
+ if v != 6 { panic(v); }
v = c.x(c);
- if v != 6 { panic v; }
+ if v != 6 { panic(v); }
v = c.f();
- if v != 6 { panic v; }
+ if v != 6 { panic(v); }
}
func
@@ -47,6 +47,6 @@ g(p *C)int
var v int;
v = p.a;
- if v != 6 { panic v; }
+ if v != 6 { panic(v); }
return p.a;
}