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: metadata !{metadata !"b.c", metadata !""} 7; CHECK: !"a.c", !""} 8; CHECK-NOT: metadata !{metadata !"b.c", metadata !""} 9 10!llvm.module.flags = !{ !0 } 11!llvm.dbg.cu = !{!1} 12 13!0 = !{i32 2, !"Debug Info Version", i32 2} 14!1 = !{!"0x11\0012\00clang\001\00\000\00\000", !2, !3, !3, !3, null, null} ; [ DW_TAG_compile_unit ] 15!2 = !{!"a.c", !""} 16!3 = !{} 17