2009-03-16 18:21:58 +00:00
|
|
|
// $G $D/$F.go || echo BUG should compile
|
|
|
|
|
|
|
|
// 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.
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
func main() {
|
2011-03-15 18:05:07 +00:00
|
|
|
if true {
|
|
|
|
} else {
|
|
|
|
L1:
|
2011-06-17 10:07:13 +00:00
|
|
|
goto L1
|
2011-03-15 18:05:07 +00:00
|
|
|
}
|
|
|
|
if true {
|
|
|
|
} else {
|
2011-06-17 10:07:13 +00:00
|
|
|
goto L2
|
2011-03-15 18:05:07 +00:00
|
|
|
L2:
|
|
|
|
main()
|
|
|
|
}
|
2009-03-16 18:21:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
These should be legal according to the spec.
|
2009-03-17 04:47:38 +00:00
|
|
|
bug140.go:6: syntax error near L1
|
|
|
|
bug140.go:7: syntax error near L2
|
2009-03-16 18:21:58 +00:00
|
|
|
*/
|