blob: 78d77b4d0fee3d4d917abacaa1f9450683cff104 [file] [log] [blame]
Duncan P. N. Exon Smitha96d4092015-02-13 01:29:28 +00001; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s
2; RUN: verify-uselistorder %s
3
Duncan P. N. Exon Smith06a07022015-02-13 01:30:42 +00004; CHECK: !named = !{!0, !1, !2, !3, !4, !4, !5, !6, !7, !7}
5!named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9}
Duncan P. N. Exon Smitha96d4092015-02-13 01:29:28 +00006
7!0 = distinct !{}
8!1 = !{!"path/to/file", !"/path/to/dir"}
9!2 = !MDFile(filename: "path/to/file", directory: "/path/to/dir")
10
11; CHECK: !3 = !MDLexicalBlock(scope: !0, file: !2, line: 7, column: 35)
12!3 = !MDLexicalBlock(scope: !0, file: !2, line: 7, column: 35)
13
14; CHECK: !4 = !MDLexicalBlock(scope: !0)
15!4 = !MDLexicalBlock(scope: !0)
16!5 = !MDLexicalBlock(scope: !0, file: null, line: 0, column: 0)
Duncan P. N. Exon Smith06a07022015-02-13 01:30:42 +000017
18; CHECK: !5 = !MDLexicalBlockFile(scope: !3, file: !2, discriminator: 0)
19; CHECK: !6 = !MDLexicalBlockFile(scope: !3, file: !2, discriminator: 1)
20!6 = !MDLexicalBlockFile(scope: !3, file: !2, discriminator: 0)
21!7 = !MDLexicalBlockFile(scope: !3, file: !2, discriminator: 1)
22
23; CHECK: !7 = !MDLexicalBlockFile(scope: !3, discriminator: 7)
24!8 = !MDLexicalBlockFile(scope: !3, discriminator: 7)
25!9 = !MDLexicalBlockFile(scope: !3, file: null, discriminator: 7)