rust/tests/pretty/vec-comments.pp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
648 B
ObjectPascal
Raw Normal View History

// Issue #679
// Testing that comments are correctly interleaved
2024-02-21 06:37:58 -06:00
//@ pp-exact:vec-comments.pp
fn main() {
2013-08-17 10:37:42 -05:00
let _v1 =
[
// Comment
0,
// Comment
1,
// Comment
2];
2013-08-17 10:37:42 -05:00
let _v2 =
2015-01-25 15:05:03 -06:00
[0, // Comment
1, // Comment
2]; // Comment
2013-08-17 10:37:42 -05:00
let _v3 =
[
/* Comment */
0,
/* Comment */
1,
/* Comment */
2];
2013-08-17 10:37:42 -05:00
let _v4 =
2015-01-25 15:05:03 -06:00
[0, /* Comment */
1, /* Comment */
2]; /* Comment */
}