mirror of https://github.com/golang/go.git
gc: bug302
Fixed by http://code.google.com/p/go/source/detail?r=d1f41e20a90e This just adds a test and checks the return value of Bprint. R=ken2 CC=golang-dev https://golang.org/cl/1949042
This commit is contained in:
parent
9d5da464ff
commit
a9a62eef6b
|
|
@ -176,7 +176,8 @@ dumpexporttype(Sym *s)
|
|||
yyerror("export of incomplete type %T", t);
|
||||
return;
|
||||
}
|
||||
Bprint(bout, "type %#T %l#T\n", t, t);
|
||||
if(Bprint(bout, "type %#T %l#T\n", t, t) < 0)
|
||||
fatal("Bprint failed for %T", t);
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
// Copyright 2010 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package main
|
||||
|
||||
import _ "./p"
|
||||
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,6 @@
|
|||
// $G $D/bug302.dir/p.go && $G $D/bug302.dir/main.go
|
||||
|
||||
// Copyright 2010 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
Loading…
Reference in New Issue