summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/extern-abi-string-escaping.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/extern-abi-string-escaping.rs')
-rw-r--r--tests/ui/parser/extern-abi-string-escaping.rs13
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();