2012-12-10 17:32:48 -08: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 11:37:35 -07:00
|
|
|
// Issue #679
|
|
|
|
// Testing that comments are correctly interleaved
|
|
|
|
// pp-exact:vec-comments.pp
|
|
|
|
fn main() {
|
2011-08-19 15:16:48 -07:00
|
|
|
let v1 =
|
2012-06-29 16:26:56 -07:00
|
|
|
~[
|
2012-07-10 13:55:19 -07:00
|
|
|
// Comment
|
|
|
|
0,
|
|
|
|
// Comment
|
|
|
|
1,
|
|
|
|
// Comment
|
|
|
|
2];
|
2011-08-19 15:16:48 -07:00
|
|
|
let v2 =
|
2012-06-29 16:26:56 -07:00
|
|
|
~[0, // Comment
|
2012-07-10 13:55:19 -07:00
|
|
|
1, // Comment
|
|
|
|
2]; // Comment
|
2011-08-19 15:16:48 -07:00
|
|
|
let v3 =
|
2012-06-29 16:26:56 -07:00
|
|
|
~[
|
2012-07-10 13:55:19 -07:00
|
|
|
/* Comment */
|
|
|
|
0,
|
|
|
|
/* Comment */
|
|
|
|
1,
|
|
|
|
/* Comment */
|
|
|
|
2];
|
2011-08-19 15:16:48 -07:00
|
|
|
let v4 =
|
2012-06-29 16:26:56 -07:00
|
|
|
~[0, /* Comment */
|
2012-07-10 13:55:19 -07:00
|
|
|
1, /* Comment */
|
|
|
|
2]; /* Comment */
|
2011-08-16 11:37:35 -07:00
|
|
|
}
|