annotate test/Linker/odr.ll @ 121:803732b1fca8

LLVM 5.0
author kono
date Fri, 27 Oct 2017 17:07:41 +0900
parents 1172e4bd9c6f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
120
1172e4bd9c6f update 4.0.0
mir3636
parents:
diff changeset
1 ; Use llvm-as to verify each module
1172e4bd9c6f update 4.0.0
mir3636
parents:
diff changeset
2 ; RUN: llvm-as %s -o %t1.bc
1172e4bd9c6f update 4.0.0
mir3636
parents:
diff changeset
3 ; RUN: llvm-as %p/Inputs/odr.ll -o %t2.bc
1172e4bd9c6f update 4.0.0
mir3636
parents:
diff changeset
4 ; Check that we can link it
1172e4bd9c6f update 4.0.0
mir3636
parents:
diff changeset
5 ; RUN: llvm-link %t1.bc %t2.bc -o %t
121
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
6 source_filename = "test/Linker/odr.ll"
120
1172e4bd9c6f update 4.0.0
mir3636
parents:
diff changeset
7
121
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
8 @bar = global i64 0, align 8, !dbg !0
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
9
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
10 !llvm.dbg.cu = !{!2}
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
11 !llvm.module.flags = !{!8}
120
1172e4bd9c6f update 4.0.0
mir3636
parents:
diff changeset
12
121
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
13 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
14 !1 = !DIGlobalVariable(name: "c", scope: null, isLocal: false, isDefinition: true, type: !9)
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
15 !2 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !3, isOptimized: false, runtimeVersion: 0, emissionKind: NoDebug, retainedTypes: !4, globals: !7)
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
16 !3 = !DIFile(filename: "a", directory: "")
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
17 !4 = !{!5}
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
18 !5 = distinct !DICompositeType(tag: DW_TAG_class_type, scope: !6, file: !3, identifier: "zed")
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
19 !6 = distinct !DISubprogram(name: "b", scope: null, isLocal: false, isDefinition: true, isOptimized: false, unit: !2)
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
20 !7 = !{!0}
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
21 !8 = !{i32 2, !"Debug Info Version", i32 3}
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
22 !9 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)