1
0
mirror of https://github.com/golang/go synced 2024-11-12 09:30:25 -07:00

replaced baked-in address with @ so test passes on linux

R=rsc
OCL=17841
CL=17841
This commit is contained in:
Rob Pike 2008-10-24 21:02:51 -07:00
parent b379d54dea
commit a785e8ac6d

View File

@ -149,7 +149,7 @@ func main() {
var i int = 7;
var tmp = &T{123, 456.0, "hello", &i};
value := reflect.NewValue(tmp);
assert(reflect.ValueToString(value.(reflect.PtrValue).Sub()), "main.T{123, +4.560000e+02, hello, *int32(134980)}");
assert(reflect.ValueToString(value.(reflect.PtrValue).Sub()), "main.T{123, +4.560000e+02, hello, *int32(@)}");
}
{
type C chan *T; // TODO: should not be necessary