about summary refs log tree commit diff
path: root/src/test/run-pass/concat.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/concat.rs')
-rw-r--r--src/test/run-pass/concat.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/run-pass/concat.rs b/src/test/run-pass/concat.rs
index 64209f24460..dd184c90295 100644
--- a/src/test/run-pass/concat.rs
+++ b/src/test/run-pass/concat.rs
@@ -1,4 +1,4 @@
-// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
 //
@@ -11,6 +11,8 @@
 pub fn main() {
     assert_eq!(format!(concat!("foo", "bar", "{}"), "baz"), "foobarbaz".to_string());
     assert_eq!(format!(concat!()), "".to_string());
+    // check trailing comma is allowed in concat
+    assert_eq!(concat!("qux", "quux",).to_string(), "quxquux".to_string());
 
     assert_eq!(
         concat!(1, 2i, 3u, 4f32, 4.0, 'a', true, ()),