Commit 6c8447d4 authored by Ian Lance Taylor's avatar Ian Lance Taylor

test: add bug438, a valid test case that gccgo used to fail to compile

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6196047
parent 4d724f4c
// compile
// Copyright 2012 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.
// Gccgo used to incorrectly give an error when compiling this.
package p
func F() (i int) {
for first := true; first; first = false {
i++
}
return
}
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