]> Cypherpunks repositories - gostls13.git/commitdiff
- filed 2 bugs: unary ^ not implemented, compiler crash with illegal const decl
authorRobert Griesemer <gri@golang.org>
Wed, 30 Jul 2008 23:09:29 +0000 (16:09 -0700)
committerRobert Griesemer <gri@golang.org>
Wed, 30 Jul 2008 23:09:29 +0000 (16:09 -0700)
R=r
OCL=13666
CL=13666

test/bugs/bug081.go [new file with mode: 0644]
test/bugs/bug082.go [new file with mode: 0644]
test/golden.out

diff --git a/test/bugs/bug081.go b/test/bugs/bug081.go
new file mode 100644 (file)
index 0000000..ccb3699
--- /dev/null
@@ -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
+*/
diff --git a/test/bugs/bug082.go b/test/bugs/bug082.go
new file mode 100644 (file)
index 0000000..9b877de
--- /dev/null
@@ -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
+*/
index b35a1707c2d3c99e0ac9117ad117eadba3a8a154..45a31437bd9cad6a2b1ea7ec3739f1afcc2b9092 100644 (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