rust/test/loops.rs
Scott Olson 3f96b3a122 Use i64 instead of i32 in tests.
Miri's only integer representation right now is 64-bit.
2016-03-12 22:39:12 -06:00

16 lines
293 B
Rust

#![feature(custom_attribute)]
#![allow(dead_code, unused_attributes)]
// #[miri_run(expected = "Int(3628800)")]
// fn factorial_loop() -> i64 {
// let mut product = 1;
// let mut i = 1;
// while i <= 10 {
// product *= i;
// i += 1;
// }
// product
// }