0
0
mirror of https://github.com/rust-lang/rust.git synced 2024-11-22 10:25:09 +01:00
rust/tests/pretty/vec-comments.pp
许杰友 Jieyou Xu (Joe) cd25009469
Re-bless tests/pretty
2024-02-22 16:04:05 +00:00

30 lines
648 B
ObjectPascal

// Issue #679
// Testing that comments are correctly interleaved
//@ pp-exact:vec-comments.pp
fn main() {
let _v1 =
[
// Comment
0,
// Comment
1,
// Comment
2];
let _v2 =
[0, // Comment
1, // Comment
2]; // Comment
let _v3 =
[
/* Comment */
0,
/* Comment */
1,
/* Comment */
2];
let _v4 =
[0, /* Comment */
1, /* Comment */
2]; /* Comment */
}