2016-03-12 21:32:24 -06:00
|
|
|
#![feature(custom_attribute)]
|
|
|
|
#![allow(dead_code, unused_attributes)]
|
|
|
|
|
|
|
|
#[miri_run]
|
2016-03-12 22:39:09 -06:00
|
|
|
fn tuple() -> (i64,) {
|
2016-03-12 21:32:24 -06:00
|
|
|
(1,)
|
|
|
|
}
|
|
|
|
|
|
|
|
#[miri_run]
|
2016-03-12 22:39:09 -06:00
|
|
|
fn tuple_2() -> (i64, i64) {
|
2016-03-12 21:32:24 -06:00
|
|
|
(1, 2)
|
|
|
|
}
|
|
|
|
|
|
|
|
#[miri_run]
|
2016-03-12 22:39:09 -06:00
|
|
|
fn tuple_5() -> (i64, i64, i64, i64, i64) {
|
2016-03-12 21:32:24 -06:00
|
|
|
(1, 2, 3, 4, 5)
|
|
|
|
}
|
|
|
|
|
|
|
|
struct Pair { x: i64, y: i64 }
|
|
|
|
|
|
|
|
#[miri_run]
|
|
|
|
fn pair() -> Pair {
|
|
|
|
Pair { x: 10, y: 20 }
|
|
|
|
}
|