blob: 2d919e44186a58570e27312d868ff8c4450e9d9d [file] [log] [blame]
Rafael Espindolaf362d3a2016-06-29 18:31:48 +00001; Use llvm-as to verify each module
2; RUN: llvm-as %s -o %t1.bc
3; RUN: llvm-as %p/Inputs/odr.ll -o %t2.bc
4; Check that we can link it
5; RUN: llvm-link %t1.bc %t2.bc -o %t
Adrian Prantlc271bc02016-12-22 00:45:21 +00006source_filename = "test/Linker/odr.ll"
Rafael Espindolaf362d3a2016-06-29 18:31:48 +00007
Adrian Prantlc271bc02016-12-22 00:45:21 +00008@bar = global i64 0, align 8, !dbg !0
Rafael Espindolaf362d3a2016-06-29 18:31:48 +00009
Adrian Prantlc271bc02016-12-22 00:45:21 +000010!llvm.dbg.cu = !{!2}
11!llvm.module.flags = !{!8}
12
Adrian Prantl69e607f2017-08-30 18:06:51 +000013!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
Davide Italiano9c770382017-08-16 13:39:07 +000014!1 = !DIGlobalVariable(name: "c", scope: null, isLocal: false, isDefinition: true, type: !9)
Adrian Prantlc271bc02016-12-22 00:45:21 +000015!2 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !3, isOptimized: false, runtimeVersion: 0, emissionKind: NoDebug, retainedTypes: !4, globals: !7)
16!3 = !DIFile(filename: "a", directory: "")
17!4 = !{!5}
18!5 = distinct !DICompositeType(tag: DW_TAG_class_type, scope: !6, file: !3, identifier: "zed")
19!6 = distinct !DISubprogram(name: "b", scope: null, isLocal: false, isDefinition: true, isOptimized: false, unit: !2)
20!7 = !{!0}
21!8 = !{i32 2, !"Debug Info Version", i32 3}
Davide Italiano9c770382017-08-16 13:39:07 +000022!9 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)