Commit a9a62eef authored by Russ Cox's avatar Russ Cox

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
parent 9d5da464
...@@ -176,7 +176,8 @@ dumpexporttype(Sym *s) ...@@ -176,7 +176,8 @@ dumpexporttype(Sym *s)
yyerror("export of incomplete type %T", t); yyerror("export of incomplete type %T", t);
return; 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 static int
......
// 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"
This diff is collapsed.
// $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.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment