mirror of
https://github.com/golang/go.git
synced 2025-05-15 20:34:38 +00:00
not a bug by current understanding, so delete this file.
6g says: bug138.go:8: constant -1 overflows uint gccgo says: bug138.go:8:16: error: integer constant overflow R=rsc DELTA=19 (0 added, 19 deleted, 0 changed) OCL=27099 CL=27149
This commit is contained in:
parent
d50c70d261
commit
a888d4d233
@ -1,19 +0,0 @@
|
|||||||
// 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.
|
|
||||||
|
|
||||||
// $G $D/$F.go || echo BUG should compile
|
|
||||||
|
|
||||||
package main
|
|
||||||
|
|
||||||
func main() {
|
|
||||||
const c int = -1;
|
|
||||||
var i int = -1;
|
|
||||||
var xc uint = uint(c); // this does not work
|
|
||||||
var xi uint = uint(i); // this works
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
bug138.go:8: overflow converting constant to uint
|
|
||||||
bug138.go:8: illegal combination of literals CONV 7
|
|
||||||
*/
|
|
@ -111,10 +111,6 @@ BUG: compilation succeeds incorrectly
|
|||||||
=========== bugs/bug136.go
|
=========== bugs/bug136.go
|
||||||
BUG: should not compile
|
BUG: should not compile
|
||||||
|
|
||||||
=========== bugs/bug138.go
|
|
||||||
bugs/bug138.go:8: constant -1 overflows uint
|
|
||||||
BUG should compile
|
|
||||||
|
|
||||||
=========== bugs/bug139.go
|
=========== bugs/bug139.go
|
||||||
bugs/bug139.go:7: fatal error: naddr: ONAME class x 5
|
bugs/bug139.go:7: fatal error: naddr: ONAME class x 5
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user