[compatibility.ll] Cover explicitly named comdats.

Patch by Vedant Kumar! <vsk@apple.com>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244284 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Sean Silva 2015-08-06 22:04:21 +00:00
parent c169fa6f10
commit 3153f23b24
2 changed files with 8 additions and 0 deletions

View File

@ -40,6 +40,14 @@ $comdat.samesize = comdat samesize
@comdat.samesize = global i32 0, comdat
; CHECK: @comdat.samesize = global i32 0, comdat
; Force two globals from different comdats into sections with the same name.
$comdat1 = comdat any
$comdat2 = comdat any
@g.comdat1 = global i32 0, section "SharedSection", comdat($comdat1)
; CHECK: @g.comdat1 = global i32 0, section "SharedSection", comdat($comdat1)
@g.comdat2 = global i32 0, section "SharedSection", comdat($comdat2)
; CHECK: @g.comdat2 = global i32 0, section "SharedSection", comdat($comdat2)
;; Constants
@const.true = constant i1 true
; CHECK: @const.true = constant i1 true

Binary file not shown.