1
0
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:
Sean Silva 2014-11-05 21:33:34 +00:00
parent f1932a5b9a
commit d393268fb5
3 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,3 @@
!llvm.ident = !{!0, !1}
!0 = metadata !{metadata !"Compiler V1"}
!1 = metadata !{metadata !"Compiler V2"}

View File

@ -0,0 +1,2 @@
!llvm.ident = !{!0}
!0 = metadata !{metadata !"Compiler V3"}

9
test/Linker/ident.ll Normal file
View 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"