2015-05-25 15:14:05 -05:00
|
|
|
// Test tuple litterals
|
|
|
|
|
|
|
|
fn foo() {
|
|
|
|
let a = (a, a, a, a, a);
|
2017-06-11 23:01:41 -05:00
|
|
|
let aaaaaaaaaaaaaaaa = (
|
|
|
|
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,
|
|
|
|
aaaaaaaaaaaaaa,
|
|
|
|
aaaaaaaaaaaaaa,
|
|
|
|
);
|
|
|
|
let aaaaaaaaaaaaaaaaaaaaaa = (
|
|
|
|
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,
|
|
|
|
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,
|
|
|
|
aaaaaaaaaaaaaaaaaaaaaaaaa,
|
|
|
|
aaaa,
|
|
|
|
);
|
2015-05-30 09:52:46 -05:00
|
|
|
let a = (a,);
|
2015-06-23 08:58:58 -05:00
|
|
|
|
2017-06-11 23:01:41 -05:00
|
|
|
let b = (
|
|
|
|
// This is a comment
|
|
|
|
b, // Comment
|
|
|
|
b, /* Trailing comment */
|
|
|
|
);
|
2017-05-30 06:40:05 -05:00
|
|
|
|
|
|
|
// #1063
|
|
|
|
foo(x.0 .0);
|
2015-05-25 15:14:05 -05:00
|
|
|
}
|
2015-07-14 17:38:54 -05:00
|
|
|
|
|
|
|
fn a() {
|
2017-06-11 23:01:41 -05:00
|
|
|
((
|
|
|
|
aaaaaaaa,
|
|
|
|
aaaaaaaaaaaaa,
|
|
|
|
aaaaaaaaaaaaaaaaa,
|
|
|
|
aaaaaaaaaaaaaa,
|
|
|
|
aaaaaaaaaaaaaaaa,
|
|
|
|
aaaaaaaaaaaaaa,
|
|
|
|
),)
|
2015-07-14 17:38:54 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn b() {
|
2017-06-11 23:01:41 -05:00
|
|
|
(
|
|
|
|
(
|
|
|
|
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb,
|
|
|
|
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb,
|
|
|
|
),
|
|
|
|
bbbbbbbbbbbbbbbbbb,
|
|
|
|
)
|
2015-07-14 17:38:54 -05:00
|
|
|
}
|
2016-09-10 00:02:05 -05:00
|
|
|
|
|
|
|
fn issue550() {
|
2017-06-18 21:25:21 -05:00
|
|
|
self.visitor.visit_volume(
|
|
|
|
self.level.sector_id(sector),
|
|
|
|
(
|
|
|
|
floor_y,
|
|
|
|
if is_sky_flat(ceil_tex) {
|
|
|
|
from_wad_height(self.height_range.1)
|
|
|
|
} else {
|
|
|
|
ceil_y
|
|
|
|
},
|
|
|
|
),
|
|
|
|
);
|
2016-09-10 00:02:05 -05:00
|
|
|
}
|
2016-09-20 00:01:35 -05:00
|
|
|
|
|
|
|
fn issue775() {
|
|
|
|
if indent {
|
2017-06-28 21:01:22 -05:00
|
|
|
let a = mk_object(&[
|
|
|
|
("a".to_string(), Boolean(true)),
|
|
|
|
(
|
|
|
|
"b".to_string(),
|
|
|
|
Array(vec![
|
2017-07-05 05:20:25 -05:00
|
|
|
mk_object(&[("c".to_string(), String("\x0c\r".to_string()))]),
|
2017-06-28 21:01:22 -05:00
|
|
|
mk_object(&[("d".to_string(), String("".to_string()))]),
|
|
|
|
]),
|
|
|
|
),
|
|
|
|
]);
|
2016-09-20 00:01:35 -05:00
|
|
|
}
|
|
|
|
}
|
2017-06-18 21:25:21 -05:00
|
|
|
|
|
|
|
fn issue1725() {
|
|
|
|
bench_antialiased_lines!(
|
|
|
|
bench_draw_antialiased_line_segment_diagonal,
|
|
|
|
(10, 10),
|
|
|
|
(450, 450)
|
|
|
|
);
|
|
|
|
bench_antialiased_lines!(
|
|
|
|
bench_draw_antialiased_line_segment_shallow,
|
|
|
|
(10, 10),
|
|
|
|
(450, 80)
|
|
|
|
);
|
|
|
|
}
|