2012-02-17 04:49:30 +00:00
|
|
|
// run
|
2008-07-30 23:09:29 +00:00
|
|
|
|
|
|
|
// 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.
|
|
|
|
|
2010-03-30 17:34:57 +00:00
|
|
|
package main
|
|
|
|
|
2008-07-30 23:09:29 +00:00
|
|
|
func main() {
|
2010-03-30 17:34:57 +00:00
|
|
|
x := 0
|
|
|
|
x = ^x // unary ^ not yet implemented
|
|
|
|
if x != ^0 {
|
|
|
|
println(x, " ", ^0)
|
|
|
|
panic("fail")
|
|
|
|
}
|
2008-07-30 23:09:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
2010-03-30 17:34:57 +00:00
|
|
|
uetli:~/Source/go/test/bugs gri$ 6g bug082.go
|
2008-07-30 23:09:29 +00:00
|
|
|
bug082.go:7: fatal error: optoas: no entry COM-<int32>INT32
|
|
|
|
*/
|