diff options
Diffstat (limited to 'llvm/test/Bitcode')
-rw-r--r-- | llvm/test/Bitcode/mdstring-high-bits.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/Bitcode/mdstring-high-bits.ll b/llvm/test/Bitcode/mdstring-high-bits.ll new file mode 100644 index 00000000000..ffc4f6ed184 --- /dev/null +++ b/llvm/test/Bitcode/mdstring-high-bits.ll @@ -0,0 +1,9 @@ +; RUN: llvm-as < %s | llvm-dis | FileCheck %s + +; PR21882: confirm we don't crash when high bits are set in a character in a +; metadata string. + +; CHECK: !name = !{!0} +!name = !{!0} +; CHECK: !0 = metadata !{metadata !"\80"} +!0 = metadata !{metadata !"\80"} |