llvm.org GIT mirror llvm / 30e5830
LTO: Add a testcase for linking modules with incompatible Debug Info Versions. rdar://problem/16926122 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209183 91177308-0d34-0410-b5e6-96231b3b80d8 Adrian Prantl 6 years ago
2 changed file(s) with 26 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-link %s %p/debug-info-version-b.ll -S -o - | FileCheck %s
1
2 ; Test linking of incompatible debug info versions. The debug info
3 ; from the other file should be dropped.
4
5 ; CHECK-NOT: metadata !{metadata !"b.c", metadata !""}
6 ; CHECK: metadata !{metadata !"a.c", metadata !""}
7 ; CHECK-NOT: metadata !{metadata !"b.c", metadata !""}
8
9 !llvm.module.flags = !{ !0 }
10 !llvm.dbg.cu = !{!1}
11
12 !0 = metadata !{i32 2, metadata !"Debug Info Version", i32 1}
13 !1 = metadata !{i32 589841, metadata !2, i32 12, metadata !"clang", i1 true, metadata !"", i32 0, metadata !3, metadata !3, metadata !3, null, null, metadata !""} ; [ DW_TAG_compile_unit ]
14 !2 = metadata !{metadata !"a.c", metadata !""}
15 !3 = metadata !{}
0 ; RUN: true
1 ; Companion for debug-info-version-a.ll.
2
3 !llvm.module.flags = !{ !0 }
4 !llvm.dbg.cu = !{!1}
5
6 !0 = metadata !{i32 2, metadata !"Debug Info Version", i32 42}
7 !1 = metadata !{i32 589841, metadata !2, i32 12, metadata !"clang", metadata !"I AM UNEXPECTED!"} ; [ DW_TAG_compile_unit ]
8 !2 = metadata !{metadata !"b.c", metadata !""}
9 !3 = metadata !{}