[compatibility.ll] Cover explicitly named comdats.

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

llvm-svn: 244284
This commit is contained in:
Sean Silva 2015-08-06 22:04:21 +00:00
parent ba3c36d65a
commit 890fe75208
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.