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