summaryrefslogtreecommitdiffstats
path: root/llvm/test/Bitcode
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Bitcode')
-rw-r--r--llvm/test/Bitcode/DICompileUnit-no-DWOId.ll9
-rw-r--r--llvm/test/Bitcode/DICompileUnit-no-DWOId.ll.bcbin0 -> 424 bytes
2 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/Bitcode/DICompileUnit-no-DWOId.ll b/llvm/test/Bitcode/DICompileUnit-no-DWOId.ll
new file mode 100644
index 00000000000..4771c37264f
--- /dev/null
+++ b/llvm/test/Bitcode/DICompileUnit-no-DWOId.ll
@@ -0,0 +1,9 @@
+; The input uses the older (r236428) form without a dwoId field. This should
+; default to 0, which is not displayed at all in the textual representation.
+;
+; RUN: llvm-dis %s.bc -o - | FileCheck %s
+; CHECK: !DICompileUnit
+; CHECK-NOT: dwoId:
+!named = !{!0}
+!0 = !DICompileUnit(language: 12, file: !1)
+!1 = !DIFile(filename: "path/to/file", directory: "/path/to/dir")
diff --git a/llvm/test/Bitcode/DICompileUnit-no-DWOId.ll.bc b/llvm/test/Bitcode/DICompileUnit-no-DWOId.ll.bc
new file mode 100644
index 00000000000..1a3c99b5806
--- /dev/null
+++ b/llvm/test/Bitcode/DICompileUnit-no-DWOId.ll.bc
Binary files differ
OpenPOWER on IntegriCloud