go.tools/ssa: fix build

Caused by https://golang.org/cl/11093044/ .

R=adonovan
CC=golang-dev
https://golang.org/cl/11149043
This commit is contained in:
Robert Griesemer 2013-07-10 22:14:40 -07:00
parent 3a75f78acd
commit 71e1c68445
2 changed files with 3 additions and 2 deletions

View File

@ -69,9 +69,9 @@ func main() {
isExt := pkg != mainPkg
// init()
if isExt && !isEmpty(pkg.init) {
if isExt && !isEmpty(pkg.Func("init")) {
t.Errorf("external package %s has non-empty init", pkg)
} else if !isExt && isEmpty(pkg.init) {
} else if !isExt && isEmpty(pkg.Func("init")) {
t.Errorf("main package %s has empty init", pkg)
}

View File

@ -73,6 +73,7 @@ func main() {
// Output:
//
// package main:
// func init func()
// var init$guard *bool
// func main func()
// const message message = "Hello, World!":untyped string