blob: 18549601cd2349ee58bfefc4a9b3376965d19343 [file] [log] [blame]
Duncan P. N. Exon Smithc8f810a2015-02-13 01:35:40 +00001; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s
2; RUN: verify-uselistorder %s
3
4@foo = global i32 0
5
6; CHECK: !named = !{!0, !1, !2, !3, !4, !5, !6}
7!named = !{!0, !1, !2, !3, !4, !5, !6}
8
9!0 = distinct !{}
Duncan P. N. Exon Smitha5c57cc2015-02-20 20:35:17 +000010!1 = distinct !{}
Duncan P. N. Exon Smithc8f810a2015-02-13 01:35:40 +000011!2 = !MDFile(filename: "path/to/file", directory: "/path/to/dir")
12!3 = distinct !{}
13!4 = distinct !{}
14
Duncan P. N. Exon Smith16d182a2015-02-28 23:21:38 +000015; CHECK: !5 = !MDGlobalVariable(name: "foo", linkageName: "foo", scope: !0, file: !2, line: 7, type: !3, isLocal: true, isDefinition: false, variable: i32* @foo, declaration: !4)
16!5 = !MDGlobalVariable(name: "foo", linkageName: "foo", scope: !0,
Duncan P. N. Exon Smitha5c57cc2015-02-20 20:35:17 +000017 file: !2, line: 7, type: !3, isLocal: true,
Duncan P. N. Exon Smithc8f810a2015-02-13 01:35:40 +000018 isDefinition: false, variable: i32* @foo,
19 declaration: !4)
20
Duncan P. N. Exon Smith16d182a2015-02-28 23:21:38 +000021; CHECK: !6 = !MDGlobalVariable(name: "bar", scope: null, isLocal: false, isDefinition: true)
Duncan P. N. Exon Smithc8f810a2015-02-13 01:35:40 +000022!6 = !MDGlobalVariable(name: "bar")