summaryrefslogtreecommitdiffstats
path: root/llvm/test/Assembler/mdlexicalblock.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Assembler/mdlexicalblock.ll')
-rw-r--r--llvm/test/Assembler/mdlexicalblock.ll16
1 files changed, 16 insertions, 0 deletions
diff --git a/llvm/test/Assembler/mdlexicalblock.ll b/llvm/test/Assembler/mdlexicalblock.ll
new file mode 100644
index 00000000000..f41b8284747
--- /dev/null
+++ b/llvm/test/Assembler/mdlexicalblock.ll
@@ -0,0 +1,16 @@
+; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s
+; RUN: verify-uselistorder %s
+
+; CHECK: !named = !{!0, !1, !2, !3, !4, !4}
+!named = !{!0, !1, !2, !3, !4, !5}
+
+!0 = distinct !{}
+!1 = !{!"path/to/file", !"/path/to/dir"}
+!2 = !MDFile(filename: "path/to/file", directory: "/path/to/dir")
+
+; CHECK: !3 = !MDLexicalBlock(scope: !0, file: !2, line: 7, column: 35)
+!3 = !MDLexicalBlock(scope: !0, file: !2, line: 7, column: 35)
+
+; CHECK: !4 = !MDLexicalBlock(scope: !0)
+!4 = !MDLexicalBlock(scope: !0)
+!5 = !MDLexicalBlock(scope: !0, file: null, line: 0, column: 0)
OpenPOWER on IntegriCloud