summaryrefslogtreecommitdiff
path: root/test/Bitcode/DICompileUnit-no-DWOId.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Bitcode/DICompileUnit-no-DWOId.ll')
-rw-r--r--test/Bitcode/DICompileUnit-no-DWOId.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Bitcode/DICompileUnit-no-DWOId.ll b/test/Bitcode/DICompileUnit-no-DWOId.ll
new file mode 100644
index 0000000000000..4771c37264f22
--- /dev/null
+++ b/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")