mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-27 13:40:30 +00:00
[Linker] Add some test coverage for llvm.ident merging
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221403 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9f59bc4a0d
commit
212f3ab5ea
3
test/Linker/Inputs/ident.a.ll
Normal file
3
test/Linker/Inputs/ident.a.ll
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
!llvm.ident = !{!0, !1}
|
||||||
|
!0 = metadata !{metadata !"Compiler V1"}
|
||||||
|
!1 = metadata !{metadata !"Compiler V2"}
|
2
test/Linker/Inputs/ident.b.ll
Normal file
2
test/Linker/Inputs/ident.b.ll
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
!llvm.ident = !{!0}
|
||||||
|
!0 = metadata !{metadata !"Compiler V3"}
|
9
test/Linker/ident.ll
Normal file
9
test/Linker/ident.ll
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
; RUN: llvm-link %S/Inputs/ident.a.ll %S/Inputs/ident.b.ll -S | FileCheck %s
|
||||||
|
|
||||||
|
; Verify that multiple input llvm.ident metadata are linked together.
|
||||||
|
|
||||||
|
; CHECK-DAG: !llvm.ident = !{!0, !1, !2}
|
||||||
|
; CHECK-DAG: "Compiler V1"
|
||||||
|
; CHECK-DAG: "Compiler V2"
|
||||||
|
; CHECK-DAG: "Compiler V3"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user