aboutsummaryrefslogtreecommitdiffstats
path: root/test/Assembler/mdfile-escaped-chars.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Assembler/mdfile-escaped-chars.ll')
-rw-r--r--test/Assembler/mdfile-escaped-chars.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Assembler/mdfile-escaped-chars.ll b/test/Assembler/mdfile-escaped-chars.ll
new file mode 100644
index 0000000..5dfd12c
--- /dev/null
+++ b/test/Assembler/mdfile-escaped-chars.ll
@@ -0,0 +1,9 @@
+; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s
+; RUN: verify-uselistorder %s
+
+; Spot-check that metadata string fields are correctly escaped.
+
+!named = !{!0}
+
+; CHECK: !0 = !MDFile(filename: "\00\01\02\80\81\82\FD\FE\FF", directory: "/dir")
+!0 = !MDFile(filename: "\00\01\02\80\81\82\FD\FE\FF", directory: "/dir")