1; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s
2; RUN: verify-uselistorder %s
3
4; CHECK: !named = !{!0, !1, !2, !3, !3}
5!named = !{!0, !1, !2, !3, !4}
6
7; CHECK:      !0 = !MDSubprogram({{.*}})
8; CHECK-NEXT: !1 = !MDCompositeType({{.*}})
9!0 = !MDSubprogram(name: "foo")
10!1 = !MDCompositeType(tag: DW_TAG_structure_type, name: "Class", size: 32, align: 32)
11
12; CHECK-NEXT: !2 = !MDImportedEntity(tag: DW_TAG_imported_module, name: "foo", scope: !0, entity: !1, line: 7)
13!2 = !MDImportedEntity(tag: DW_TAG_imported_module, name: "foo", scope: !0,
14                       entity: !1, line: 7)
15
16; CHECK-NEXT: !3 = !MDImportedEntity(tag: DW_TAG_imported_module, scope: !0)
17!3 = !MDImportedEntity(tag: DW_TAG_imported_module, scope: !0)
18!4 = !MDImportedEntity(tag: DW_TAG_imported_module, name: "", scope: !0, entity: null,
19                       line: 0)
20
21