29 lines · plain
1; RUN: llvm-as < %s | llvm-dis | FileCheck %s2; RUN: verify-uselistorder %s3 4!named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9, !10}5 6!0 = !{}7!1 = !{} ; This should merge with !0.8!2 = !{!0}9!3 = !{!0} ; This should merge with !2.10!4 = distinct !{}11!5 = distinct !{}12!6 = distinct !{!0}13!7 = distinct !{!0}14!8 = distinct !{!8}15!9 = distinct !{!9}16!10 = !{!10} ; This should become distinct.17 18; CHECK: !named = !{!0, !0, !1, !1, !2, !3, !4, !5, !6, !7, !8}19; CHECK: !0 = !{}20; CHECK-NEXT: !1 = !{!0}21; CHECK-NEXT: !2 = distinct !{}22; CHECK-NEXT: !3 = distinct !{}23; CHECK-NEXT: !4 = distinct !{!0}24; CHECK-NEXT: !5 = distinct !{!0}25; CHECK-NEXT: !6 = distinct !{!6}26; CHECK-NEXT: !7 = distinct !{!7}27; CHECK-NEXT: !8 = distinct !{!8}28; CHECK-NOT: !29