1
0
mirror of https://github.com/golang/go synced 2024-11-11 22:40:22 -07:00

- filed 2 bugs: unary ^ not implemented, compiler crash with illegal const decl

R=r
OCL=13666
CL=13666
This commit is contained in:
Robert Griesemer 2008-07-30 16:09:29 -07:00
parent c557836c8e
commit 0748bf3797
3 changed files with 37 additions and 0 deletions

14
test/bugs/bug081.go Normal file
View File

@ -0,0 +1,14 @@
// ! $G $D/$F.go
// 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
const x x = 2;
/*
bug081.go:3: first constant must evaluate an expression
Bus error
*/

17
test/bugs/bug082.go Normal file
View File

@ -0,0 +1,17 @@
// $G $D/$F.go && $L $F.$A && ./$A.out
// 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() {
x := 0;
x = ^x; // unary ^ not yet implemented
}
/*
uetli:~/Source/go/test/bugs gri$ 6g bug082.go
bug082.go:7: fatal error: optoas: no entry COM-<int32>INT32
*/

View File

@ -247,6 +247,12 @@ bugs/bug080.go:12: illegal types for operand: CALL
({<x><int32>INT32;<y><float32>FLOAT32;})
BUG: fails incorrectly
=========== bugs/bug081.go
=========== bugs/bug082.go
bugs/bug082.go:7: fatal error: optoas: no entry COM-<int32>INT32
BUG: fails incorrectly
=========== fixedbugs/bug000.go
=========== fixedbugs/bug001.go