summaryrefslogtreecommitdiff
path: root/test/fixedbugs
diff options
context:
space:
mode:
authorKen Thompson <ken@golang.org>2009-03-24 16:40:38 -0700
committerKen Thompson <ken@golang.org>2009-03-24 16:40:38 -0700
commit66b50dfa4a8601d9a3d09f7c0e619146cca8d3d4 (patch)
tree5b73d4110f951999b18acebaae296da0e992fceb /test/fixedbugs
parentd8050f809555eeeebecf4204c2f8e99536ffdd50 (diff)
downloadgolang-66b50dfa4a8601d9a3d09f7c0e619146cca8d3d4.tar.gz
^ type(const) now inverts "enough" bits
^ signed(const) becomes illegal ^ unsigned(const) becomes legal R=r OCL=26697 CL=26697
Diffstat (limited to 'test/fixedbugs')
-rw-r--r--test/fixedbugs/bug115.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/fixedbugs/bug115.go b/test/fixedbugs/bug115.go
new file mode 100644
index 000000000..16b22d707
--- /dev/null
+++ b/test/fixedbugs/bug115.go
@@ -0,0 +1,14 @@
+// $G $D/$F.go || echo BUG: bug115 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 isuint(i uint) { }
+
+func main() {
+ i := ^uint(0);
+ isuint(i);
+}