blob: f52eaa710ed2f8e98b296b859b9ab17dbc98aeda [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 !{}
10!1 = !{!"path/to/file", !"/path/to/dir"}
11!2 = !MDFile(filename: "path/to/file", directory: "/path/to/dir")
12!3 = distinct !{}
13!4 = distinct !{}
14
15; CHECK: !5 = !MDGlobalVariable(scope: !0, name: "foo", linkageName: "foo", file: !1, line: 7, type: !3, isLocal: true, isDefinition: false, variable: i32* @foo, declaration: !4)
16!5 = !MDGlobalVariable(scope: !0, name: "foo", linkageName: "foo",
17 file: !1, line: 7, type: !3, isLocal: true,
18 isDefinition: false, variable: i32* @foo,
19 declaration: !4)
20
21; CHECK: !6 = !MDGlobalVariable(scope: null, name: "bar", isLocal: false, isDefinition: true)
22!6 = !MDGlobalVariable(name: "bar")