rust/test/products.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

25 lines
344 B
Rust

#![feature(custom_attribute)]
#![allow(dead_code, unused_attributes)]
#[miri_run]
fn tuple() -> (i64,) {
(1,)
}
#[miri_run]
fn tuple_2() -> (i64, i64) {
(1, 2)
}
#[miri_run]
fn tuple_5() -> (i64, i64, i64, i64, i64) {
(1, 2, 3, 4, 5)
}
struct Pair { x: i64, y: i64 }
#[miri_run]
fn pair() -> Pair {
Pair { x: 10, y: 20 }
}