diff options
| author | Benjamin Herr <ben@0x539.de> | 2013-10-05 07:25:59 +0200 |
|---|---|---|
| committer | Benjamin Herr <ben@0x539.de> | 2013-10-08 03:47:21 +0200 |
| commit | d7dfe0ae34eb9a818dcbdb5646e21e721ffb3c33 (patch) | |
| tree | 32dc354d08cfef17380e9ef54a921859bfeb1acd | |
| parent | 9d7b13004192b8eef1f68501035d05c85dee8c47 (diff) | |
| download | rust-d7dfe0ae34eb9a818dcbdb5646e21e721ffb3c33.tar.gz rust-d7dfe0ae34eb9a818dcbdb5646e21e721ffb3c33.zip | |
pp: add test for raw strs in non-expression positions
| -rw-r--r-- | src/test/pretty/raw-str-nonexpr.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/pretty/raw-str-nonexpr.rs b/src/test/pretty/raw-str-nonexpr.rs new file mode 100644 index 00000000000..d7960a7ea80 --- /dev/null +++ b/src/test/pretty/raw-str-nonexpr.rs @@ -0,0 +1,16 @@ +// 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. + +// pp-exact + +#[cfg = r#"just parse this"#] +extern mod blah = r##"blah"##; + +fn main() { unsafe { asm!(r###"blah"###); } } |
