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