Commit 362f7bfa authored by Ian Lance Taylor's avatar Ian Lance Taylor

test: add test that gccgo failed to compile

Change-Id: I9ea6d4d8a9c1c63de36f2f3871dd5ac9201c0aac
Reviewed-on: https://go-review.googlesource.com/7523Reviewed-by: 's avatarMinux Ma <minux@golang.org>
parent a4bfe64f
// compile
// Copyright 2015 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 give an incorrect error
// bug495.go:16:2: error: missing statement after label
package p
func F(i int) {
switch i {
case 0:
goto lab
lab:
fallthrough
case 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