mirror of
https://github.com/golang/go
synced 2024-11-21 18:04:40 -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:
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
|
||||
|
7
test/fixedbugs/bug302.dir/main.go
Normal file
7
test/fixedbugs/bug302.dir/main.go
Normal 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"
|
1011
test/fixedbugs/bug302.dir/p.go
Normal file
1011
test/fixedbugs/bug302.dir/p.go
Normal file
File diff suppressed because it is too large
Load Diff
6
test/fixedbugs/bug302.go
Normal file
6
test/fixedbugs/bug302.go
Normal 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.
|
||||
|
Loading…
Reference in New Issue
Block a user