1
0
mirror of https://github.com/golang/go synced 2024-11-25 02:57:57 -07:00

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:
Russ Cox 2010-08-10 17:39:38 -07:00
parent 9d5da464ff
commit a9a62eef6b
4 changed files with 1026 additions and 1 deletions

View File

@ -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

View File

@ -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

6
test/fixedbugs/bug302.go Normal file
View File

@ -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.