blob: 5fb72faa18e1f98d7ecd65869d3d4c1901ee6fec [file] [log] [blame]
Duncan P. N. Exon Smith6adbfa32015-02-03 21:54:14 +00001; RUN: llvm-as < %s | llvm-dis | FileCheck %s
2; RUN: verify-uselistorder %s
3
Duncan P. N. Exon Smith1602e582015-02-03 21:56:01 +00004; CHECK: !named = !{!0, !1, !1, !2, !2, !2, !2, !3, !4, !2}
5!named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9}
Duncan P. N. Exon Smith6adbfa32015-02-03 21:54:14 +00006
7; CHECK: !0 = !{}
8!0 = !{}
9
Duncan P. N. Exon Smithe56023a2015-04-29 16:38:44 +000010; CHECK-NEXT: !1 = !GenericDINode(tag: DW_TAG_entry_point, header: "some\00header", operands: {!0, !2, !2})
11!1 = !GenericDINode(tag: 3, header: "some\00header", operands: {!0, !3, !4})
12!2 = !GenericDINode(tag: 3, header: "some\00header", operands: {!{}, !3, !4})
Duncan P. N. Exon Smith6adbfa32015-02-03 21:54:14 +000013
Duncan P. N. Exon Smithe56023a2015-04-29 16:38:44 +000014; CHECK-NEXT: !2 = !GenericDINode(tag: DW_TAG_entry_point)
15!3 = !GenericDINode(tag: 3)
16!4 = !GenericDINode(tag: 3, header: "")
17!5 = !GenericDINode(tag: 3, operands: {})
18!6 = !GenericDINode(tag: 3, header: "", operands: {})
Duncan P. N. Exon Smith6adbfa32015-02-03 21:54:14 +000019
Duncan P. N. Exon Smithe56023a2015-04-29 16:38:44 +000020; CHECK-NEXT: !3 = distinct !GenericDINode(tag: DW_TAG_entry_point)
21!7 = distinct !GenericDINode(tag: 3)
Duncan P. N. Exon Smith6adbfa32015-02-03 21:54:14 +000022
Duncan P. N. Exon Smithe56023a2015-04-29 16:38:44 +000023; CHECK-NEXT: !4 = !GenericDINode(tag: 65535)
24!8 = !GenericDINode(tag: 65535)
Duncan P. N. Exon Smith1602e582015-02-03 21:56:01 +000025
26; CHECK-NOT: !
Duncan P. N. Exon Smithe56023a2015-04-29 16:38:44 +000027!9 = !GenericDINode(tag: DW_TAG_entry_point)