blob: 9e1ab64fd51ed81b625d76aa637e146de218603d [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 !{}
Duncan P. N. Exon Smith814b8e92015-08-28 20:26:49 +00008!1 = distinct !DISubprogram(name: "foo", scope: !2)
Duncan P. N. Exon Smitha9308c42015-04-29 16:38:44 +00009!2 = !DIFile(filename: "path/to/file", directory: "/path/to/dir")
Duncan P. N. Exon Smitha96d4092015-02-13 01:29:28 +000010
Duncan P. N. Exon Smitha9308c42015-04-29 16:38:44 +000011; CHECK: !3 = !DILexicalBlock(scope: !1, file: !2, line: 7, column: 35)
12!3 = !DILexicalBlock(scope: !1, file: !2, line: 7, column: 35)
Duncan P. N. Exon Smitha96d4092015-02-13 01:29:28 +000013
Duncan P. N. Exon Smitha9308c42015-04-29 16:38:44 +000014; CHECK: !4 = !DILexicalBlock(scope: !1)
15!4 = !DILexicalBlock(scope: !1)
16!5 = !DILexicalBlock(scope: !1, file: null, line: 0, column: 0)
Duncan P. N. Exon Smith06a07022015-02-13 01:30:42 +000017
Duncan P. N. Exon Smitha9308c42015-04-29 16:38:44 +000018; CHECK: !5 = !DILexicalBlockFile(scope: !3, file: !2, discriminator: 0)
19; CHECK: !6 = !DILexicalBlockFile(scope: !3, file: !2, discriminator: 1)
20!6 = !DILexicalBlockFile(scope: !3, file: !2, discriminator: 0)
21!7 = !DILexicalBlockFile(scope: !3, file: !2, discriminator: 1)
Duncan P. N. Exon Smith06a07022015-02-13 01:30:42 +000022
Duncan P. N. Exon Smitha9308c42015-04-29 16:38:44 +000023; CHECK: !7 = !DILexicalBlockFile(scope: !3, discriminator: 7)
24!8 = !DILexicalBlockFile(scope: !3, discriminator: 7)
25!9 = !DILexicalBlockFile(scope: !3, file: null, discriminator: 7)