2009-03-16 12:21:58 -06: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 12:05:07 -06:00
|
|
|
if true {
|
|
|
|
} else {
|
|
|
|
L1:
|
2011-06-17 04:07:13 -06:00
|
|
|
goto L1
|
2011-03-15 12:05:07 -06:00
|
|
|
}
|
|
|
|
if true {
|
|
|
|
} else {
|
2011-06-17 04:07:13 -06:00
|
|
|
goto L2
|
2011-03-15 12:05:07 -06:00
|
|
|
L2:
|
|
|
|
main()
|
|
|
|
}
|
2009-03-16 12:21:58 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
These should be legal according to the spec.
|
2009-03-16 22:47:38 -06:00
|
|
|
bug140.go:6: syntax error near L1
|
|
|
|
bug140.go:7: syntax error near L2
|
2009-03-16 12:21:58 -06:00
|
|
|
*/
|