Commit 58845656 authored by Ian Lance Taylor's avatar Ian Lance Taylor

test: update bug086.go for current gccgo behaviour

bug086.go:14:1: error: missing return at end of function

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/12697043
parent ef86beb4
......@@ -6,12 +6,12 @@
package main
func f() int { // GCCGO_ERROR "control"
func f() int {
if false {
return 0;
}
// we should not be able to return successfully w/o a return statement
} // GC_ERROR "return"
} // ERROR "return"
func main() {
print(f(), "\n");
......
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