diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-02-13 01:29:28 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-02-13 01:29:28 +0000 |
| commit | a96d40999702c46894b6aad419e573a4bbc90673 (patch) | |
| tree | bf34989a887523bad13fa9f986b07d72d8c21b7c /llvm/test/Assembler/mdlexicalblock.ll | |
| parent | 890533e987c8ba71e09ea3cac19061d520dbbf23 (diff) | |
| download | bcm5719-llvm-a96d40999702c46894b6aad419e573a4bbc90673.tar.gz bcm5719-llvm-a96d40999702c46894b6aad419e573a4bbc90673.zip | |
AsmWriter/Bitcode: MDLexicalBlock
llvm-svn: 229016
Diffstat (limited to 'llvm/test/Assembler/mdlexicalblock.ll')
| -rw-r--r-- | llvm/test/Assembler/mdlexicalblock.ll | 16 |
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) |

