diff options
Diffstat (limited to 'src/test/ui/parser/extern-abi-raw-strings.rs')
-rw-r--r-- | src/test/ui/parser/extern-abi-raw-strings.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/ui/parser/extern-abi-raw-strings.rs b/src/test/ui/parser/extern-abi-raw-strings.rs new file mode 100644 index 000000000..fad855a21 --- /dev/null +++ b/src/test/ui/parser/extern-abi-raw-strings.rs @@ -0,0 +1,13 @@ +// check-pass + +// Check that the string literal in `extern lit` will accept raw strings. + +fn main() {} + +extern r#"C"# fn foo() {} + +extern r#"C"# { + fn bar(); +} + +type T = extern r#"C"# fn(); |