mirror of
https://github.com/golang/go
synced 2024-11-24 16:50:13 -07:00
b8be809c10
^ signed(const) becomes illegal ^ unsigned(const) becomes legal R=r OCL=26697 CL=26697
15 lines
294 B
Go
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);
|
|
}
|