2011-08-16 13:37:35 -05:00
|
|
|
// Issue #679
|
|
|
|
// Testing that comments are correctly interleaved
|
|
|
|
// pp-exact:vec-comments.pp
|
|
|
|
fn main() {
|
|
|
|
let v1 =
|
2012-07-10 15:55:19 -05:00
|
|
|
~[
|
|
|
|
// Comment
|
|
|
|
0,
|
|
|
|
// Comment
|
|
|
|
1,
|
|
|
|
// Comment
|
|
|
|
2];
|
2011-08-16 13:37:35 -05:00
|
|
|
let v2 =
|
2012-07-10 15:55:19 -05:00
|
|
|
~[0, // Comment
|
|
|
|
1, // Comment
|
|
|
|
2]; // Comment
|
2011-08-16 13:37:35 -05:00
|
|
|
let v3 =
|
2012-07-10 15:55:19 -05:00
|
|
|
~[
|
|
|
|
/* Comment */
|
|
|
|
0,
|
|
|
|
/* Comment */
|
|
|
|
1,
|
|
|
|
/* Comment */
|
|
|
|
2];
|
2011-08-16 13:37:35 -05:00
|
|
|
let v4 =
|
2012-07-10 15:55:19 -05:00
|
|
|
~[0, /* Comment */
|
|
|
|
1, /* Comment */
|
|
|
|
2]; /* Comment */
|
2011-08-16 13:37:35 -05:00
|
|
|
}
|