Sign in
gnu
/
gcc.git
/
refs/heads/master
/
.
/
gcc
/
testsuite
/
rust
/
compile
/
cast_float_as_integer.rs
blob: e6b86db8a664fca342ed7918583fb8af21020e73 [
file
] [
log
] [
blame
]
// { dg-options "-w" }
fn
main
(){
let
foo
:
f64
=
13.37
;
let
_
=
foo
as
i64
;
let
_
=
foo
as
u64
;
let
_
=
foo
as
isize
;
let
_
=
foo
as
usize
;
let
_
=
foo
as
i8
;
let
_
=
foo
as
u8
;
}