1
0
mirror of https://github.com/golang/go synced 2024-11-05 20:26:13 -07:00
go/test/fixedbugs/bug115.go
Ken Thompson b8be809c10 ^ type(const) now inverts "enough" bits
^ signed(const) becomes illegal
^ unsigned(const) becomes legal

R=r
OCL=26697
CL=26697
2009-03-24 16:40:38 -07:00

15 lines
294 B
Go

// $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);
}