1 ; 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 6 ; CHECK-NOT: !DIFile(filename: "b.c", directory: "") 7 ; CHECK: !DIFile(filename: "a.c", directory: "") 8 ; CHECK-NOT: !DIFile(filename: "b.c", directory: "") 9 10 !llvm.module.flags = !{ !0 } 11 !llvm.dbg.cu = !{!1} 12 13 !0 = !{i32 2, !"Debug Info Version", i32 3} 14 !1 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang", isOptimized: true, emissionKind: 0, file: !2, enums: !3, retainedTypes: !3, subprograms: !3) 15 !2 = !DIFile(filename: "a.c", directory: "") 16 !3 = !{} 17