2012-12-11 02:15:29 +00:00
|
|
|
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
|
|
|
// file at the top-level directory of this distribution and at
|
|
|
|
// http://rust-lang.org/COPYRIGHT.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
|
|
// option. This file may not be copied, modified, or distributed
|
|
|
|
// except according to those terms.
|
|
|
|
|
2011-08-16 18:37:35 +00:00
|
|
|
// Issue #679
|
|
|
|
// Testing that comments are correctly interleaved
|
|
|
|
// pp-exact:vec-comments.pp
|
|
|
|
fn main() {
|
|
|
|
let v1 =
|
2012-07-10 20:55:19 +00:00
|
|
|
~[
|
|
|
|
// Comment
|
|
|
|
0,
|
|
|
|
// Comment
|
|
|
|
1,
|
|
|
|
// Comment
|
|
|
|
2];
|
2011-08-16 18:37:35 +00:00
|
|
|
let v2 =
|
2012-07-10 20:55:19 +00:00
|
|
|
~[0, // Comment
|
|
|
|
1, // Comment
|
|
|
|
2]; // Comment
|
2011-08-16 18:37:35 +00:00
|
|
|
let v3 =
|
2012-07-10 20:55:19 +00:00
|
|
|
~[
|
|
|
|
/* Comment */
|
|
|
|
0,
|
|
|
|
/* Comment */
|
|
|
|
1,
|
|
|
|
/* Comment */
|
|
|
|
2];
|
2011-08-16 18:37:35 +00:00
|
|
|
let v4 =
|
2012-07-10 20:55:19 +00:00
|
|
|
~[0, /* Comment */
|
|
|
|
1, /* Comment */
|
|
|
|
2]; /* Comment */
|
2011-08-16 18:37:35 +00:00
|
|
|
}
|