mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
[Linker] Add some test coverage for llvm.ident merging
llvm-svn: 221403
This commit is contained in:
parent
f1932a5b9a
commit
d393268fb5
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