Commit d988e788 authored by Russ Cox's avatar Russ Cox

bug 100 - spurious return warnings

R=r
OCL=15221
CL=15221
parent 47580f79
// Copyright 2009 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.
// $G $D/$F.go || (echo BUG: should compile cleanly; exit 1)
package main
func f() int {
i := 0
for {
if i >= sys.argc() {
return i
}
i++
}
}
func g() int {
for {
}
}
func h() int {
for {
return 1
}
}
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