debug-info-version-a.ll 644 B

12345678910111213141516
  1. ; RUN: llvm-link %s %p/debug-info-version-b.ll -S -o - | FileCheck %s
  2. ; Test linking of incompatible debug info versions. The debug info
  3. ; from the other file should be dropped.
  4. ; CHECK-NOT: !DIFile(filename: "b.c", directory: "")
  5. ; CHECK: !DIFile(filename: "a.c", directory: "")
  6. ; CHECK-NOT: !DIFile(filename: "b.c", directory: "")
  7. !llvm.module.flags = !{ !0 }
  8. !llvm.dbg.cu = !{!1}
  9. !0 = !{i32 2, !"Debug Info Version", i32 3}
  10. !1 = !DICompileUnit(language: DW_LANG_C99, producer: "clang", isOptimized: true, emissionKind: 0, file: !2, enums: !3, retainedTypes: !3, subprograms: !3)
  11. !2 = !DIFile(filename: "a.c", directory: "")
  12. !3 = !{}