From d7dfe0ae34eb9a818dcbdb5646e21e721ffb3c33 Mon Sep 17 00:00:00 2001 From: Benjamin Herr Date: Sat, 5 Oct 2013 07:25:59 +0200 Subject: [PATCH] pp: add test for raw strs in non-expression positions --- src/test/pretty/raw-str-nonexpr.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/test/pretty/raw-str-nonexpr.rs diff --git a/src/test/pretty/raw-str-nonexpr.rs b/src/test/pretty/raw-str-nonexpr.rs new file mode 100644 index 000000000000..d7960a7ea804 --- /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 or the MIT license +// , 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"###); } }