OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [go.test/] [test/] [fixedbugs/] [bug341.go] - Blame information for rev 700

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 700 jeremybenn
// $G $D/$F.go && $L $F.$A && ./$A.out || echo BUG: bug341
2
 
3
// Copyright 2011 The Go Authors.  All rights reserved.
4
// Use of this source code is governed by a BSD-style
5
// license that can be found in the LICENSE file.
6
 
7
// Used to panic because 8g was generating incorrect
8
// code for converting a negative float to a uint64.
9
 
10
package main
11
 
12
func main() {
13
        var x float32 = -2.5
14
 
15
        _ = uint64(x)
16
        _ = float32(0)
17
}
18
/*
19
panic: runtime error: floating point error
20
 
21
[signal 0x8 code=0x6 addr=0x8048c64 pc=0x8048c64]
22
*/

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.