Commit 0748bf37 authored by Robert Griesemer's avatar Robert Griesemer

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

R=r
OCL=13666
CL=13666
parent c557836c
// ! $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
*/
// $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
......
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