go.tools/go/types: remove a workaround for 386 bug
R=adonovan CC=golang-dev https://golang.org/cl/23350043
This commit is contained in:
parent
50d9adec93
commit
7520cff8d3
|
|
@ -171,11 +171,7 @@ func TestExprs(t *testing.T) {
|
||||||
t.Errorf("%s: %s", src, err)
|
t.Errorf("%s: %s", src, err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
// TODO(gri) writing the code below w/o the decl variable will
|
str := exprString(file.Decls[0].(*ast.GenDecl).Specs[0].(*ast.ValueSpec).Values[0])
|
||||||
// cause a 386 compiler error (out of fixed registers)
|
|
||||||
decl := file.Decls[0].(*ast.GenDecl)
|
|
||||||
expr := decl.Specs[0].(*ast.ValueSpec).Values[0]
|
|
||||||
str := exprString(expr)
|
|
||||||
if str != test.str {
|
if str != test.str {
|
||||||
t.Errorf("%s: got %s, want %s", test.src, str, test.str)
|
t.Errorf("%s: got %s, want %s", test.src, str, test.str)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue