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