blob: 7d73e86a2bf35fa4ce5fbcbb4393873d0a1c8b8d [file] [log] [blame]
Adrian Prantleb1ddfc2014-05-19 23:41:25 +00001; RUN: llvm-link %s %p/debug-info-version-b.ll -S -o - | FileCheck %s
2
3; Test linking of incompatible debug info versions. The debug info
4; from the other file should be dropped.
5
Duncan P. N. Exon Smithe2741802015-03-03 17:24:31 +00006; CHECK-NOT: !MDFile(filename: "b.c", directory: "")
7; CHECK: !MDFile(filename: "a.c", directory: "")
8; CHECK-NOT: !MDFile(filename: "b.c", directory: "")
Adrian Prantleb1ddfc2014-05-19 23:41:25 +00009
10!llvm.module.flags = !{ !0 }
11!llvm.dbg.cu = !{!1}
12
Duncan P. N. Exon Smithe2741802015-03-03 17:24:31 +000013!0 = !{i32 2, !"Debug Info Version", i32 3}
14!1 = !MDCompileUnit(language: DW_LANG_C99, producer: "clang", isOptimized: true, emissionKind: 0, file: !2, enums: !3, retainedTypes: !3, subprograms: !3)
15!2 = !MDFile(filename: "a.c", directory: "")
Duncan P. N. Exon Smithbe7ea192014-12-15 19:07:53 +000016!3 = !{}