rust/src/test/pretty/vec-comments.pp

30 lines
539 B
ObjectPascal
Raw Normal View History

// Issue #679
// Testing that comments are correctly interleaved
// pp-exact:vec-comments.pp
fn main() {
let v1 =
2011-08-17 18:20:53 -05:00
[
// Comment
0,
// Comment
1,
// Comment
2]/~;
let v2 =
2011-08-17 18:20:53 -05:00
[0, // Comment
1, // Comment
2]/~; // Comment
let v3 =
2011-08-17 18:20:53 -05:00
[
/* Comment */
0,
/* Comment */
1,
/* Comment */
2]/~;
let v4 =
2011-08-17 18:20:53 -05:00
[0, /* Comment */
1, /* Comment */
2]/~; /* Comment */
}