[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:
Sean Silva 2014-11-05 21:33:34 +00:00
parent 9f59bc4a0d
commit 212f3ab5ea
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"