blob: 93000893c16465a0b286a4fa7dc3daaf31101c99 [file] [log] [blame]
Duncan P. N. Exon Smith19fc5ed2015-02-13 01:26:47 +00001; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s
2; RUN: verify-uselistorder %s
3
4declare void @_Z3foov()
5
6; CHECK: !named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9}
7!named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9}
8
Duncan P. N. Exon Smithce2b9832015-03-28 02:26:45 +00009!0 = !{null}
10!1 = distinct !MDCompositeType(tag: DW_TAG_structure_type)
Duncan P. N. Exon Smith19fc5ed2015-02-13 01:26:47 +000011!2 = !MDFile(filename: "path/to/file", directory: "/path/to/dir")
Duncan P. N. Exon Smithce2b9832015-03-28 02:26:45 +000012!3 = !MDSubroutineType(types: !0)
13!4 = distinct !MDCompositeType(tag: DW_TAG_structure_type)
Duncan P. N. Exon Smith19fc5ed2015-02-13 01:26:47 +000014!5 = distinct !{}
Duncan P. N. Exon Smithce2b9832015-03-28 02:26:45 +000015!6 = distinct !MDSubprogram(isDefinition: false)
Duncan P. N. Exon Smith19fc5ed2015-02-13 01:26:47 +000016!7 = distinct !{}
17
Duncan P. N. Exon Smithce2b9832015-03-28 02:26:45 +000018; CHECK: !8 = !MDSubprogram(name: "foo", linkageName: "_Zfoov", scope: !1, file: !2, line: 7, type: !3, isLocal: true, isDefinition: false, scopeLine: 8, containingType: !4, virtuality: DW_VIRTUALITY_pure_virtual, virtualIndex: 10, flags: DIFlagPrototyped, isOptimized: true, function: void ()* @_Z3foov, templateParams: !5, declaration: !6, variables: !7)
19!8 = !MDSubprogram(name: "foo", linkageName: "_Zfoov", scope: !1,
Duncan P. N. Exon Smith19fc5ed2015-02-13 01:26:47 +000020 file: !2, line: 7, type: !3, isLocal: true,
21 isDefinition: false, scopeLine: 8, containingType: !4,
Duncan P. N. Exon Smith890533e2015-02-13 01:28:16 +000022 virtuality: DW_VIRTUALITY_pure_virtual, virtualIndex: 10,
Duncan P. N. Exon Smith70ab3d22015-02-21 01:02:18 +000023 flags: DIFlagPrototyped, isOptimized: true, function: void ()* @_Z3foov,
Duncan P. N. Exon Smith19fc5ed2015-02-13 01:26:47 +000024 templateParams: !5, declaration: !6, variables: !7)
25
Duncan P. N. Exon Smith3eea1962015-03-16 19:01:54 +000026; CHECK: !9 = !MDSubprogram(scope: null, isLocal: false, isDefinition: true, isOptimized: false)
27!9 = !MDSubprogram()
Duncan P. N. Exon Smith19fc5ed2015-02-13 01:26:47 +000028