blob: 55f047f425c354b5b0e7c93178f2f669cac87554 [file] [log] [blame]
Adrian Prantl30e58302014-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 Smithe56023a2015-04-29 16:38:44 +00006; CHECK-NOT: !DIFile(filename: "b.c", directory: "")
7; CHECK: !DIFile(filename: "a.c", directory: "")
8; CHECK-NOT: !DIFile(filename: "b.c", directory: "")
Adrian Prantl30e58302014-05-19 23:41:25 +00009
10!llvm.module.flags = !{ !0 }
11!llvm.dbg.cu = !{!1}
12
Duncan P. N. Exon Smithb056aa72015-03-03 17:24:31 +000013!0 = !{i32 2, !"Debug Info Version", i32 3}
Adrian Prantl4eeaa0d2016-04-15 15:57:41 +000014!1 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang", isOptimized: true, emissionKind: FullDebug, file: !2, enums: !3, retainedTypes: !3)
Duncan P. N. Exon Smithe56023a2015-04-29 16:38:44 +000015!2 = !DIFile(filename: "a.c", directory: "")
Duncan P. N. Exon Smith1ef70ff2014-12-15 19:07:53 +000016!3 = !{}