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:
parent
c557836c8e
commit
0748bf3797
14
test/bugs/bug081.go
Normal file
14
test/bugs/bug081.go
Normal 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
17
test/bugs/bug082.go
Normal 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
|
||||
*/
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user