mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-14 15:19:33 +00:00
LTO: Add a testcase for linking modules with incompatible Debug Info
Versions. rdar://problem/16926122 llvm-svn: 209183
This commit is contained in:
parent
8760d77d1a
commit
786c84b6bd
16
test/Linker/debug-info-version-a.ll
Normal file
16
test/Linker/debug-info-version-a.ll
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
; RUN: llvm-link %s %p/debug-info-version-b.ll -S -o - | FileCheck %s
|
||||||
|
|
||||||
|
; Test linking of incompatible debug info versions. The debug info
|
||||||
|
; from the other file should be dropped.
|
||||||
|
|
||||||
|
; CHECK-NOT: metadata !{metadata !"b.c", metadata !""}
|
||||||
|
; CHECK: metadata !{metadata !"a.c", metadata !""}
|
||||||
|
; CHECK-NOT: metadata !{metadata !"b.c", metadata !""}
|
||||||
|
|
||||||
|
!llvm.module.flags = !{ !0 }
|
||||||
|
!llvm.dbg.cu = !{!1}
|
||||||
|
|
||||||
|
!0 = metadata !{i32 2, metadata !"Debug Info Version", i32 1}
|
||||||
|
!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 ]
|
||||||
|
!2 = metadata !{metadata !"a.c", metadata !""}
|
||||||
|
!3 = metadata !{}
|
10
test/Linker/debug-info-version-b.ll
Normal file
10
test/Linker/debug-info-version-b.ll
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
; RUN: true
|
||||||
|
; Companion for debug-info-version-a.ll.
|
||||||
|
|
||||||
|
!llvm.module.flags = !{ !0 }
|
||||||
|
!llvm.dbg.cu = !{!1}
|
||||||
|
|
||||||
|
!0 = metadata !{i32 2, metadata !"Debug Info Version", i32 42}
|
||||||
|
!1 = metadata !{i32 589841, metadata !2, i32 12, metadata !"clang", metadata !"I AM UNEXPECTED!"} ; [ DW_TAG_compile_unit ]
|
||||||
|
!2 = metadata !{metadata !"b.c", metadata !""}
|
||||||
|
!3 = metadata !{}
|
Loading…
Reference in New Issue
Block a user