From: Sean Silva Date: Thu, 6 Aug 2015 22:04:21 +0000 (+0000) Subject: [compatibility.ll] Cover explicitly named comdats. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3153f23b24e65127e3fe5a2ff5b10a9e304a4ac6;p=oota-llvm.git [compatibility.ll] Cover explicitly named comdats. Patch by Vedant Kumar! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244284 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Bitcode/compatibility-3.6.ll b/test/Bitcode/compatibility-3.6.ll index be4419cf8f6..f7baa60a8a4 100644 --- a/test/Bitcode/compatibility-3.6.ll +++ b/test/Bitcode/compatibility-3.6.ll @@ -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 diff --git a/test/Bitcode/compatibility-3.6.ll.bc b/test/Bitcode/compatibility-3.6.ll.bc index 2afb9d5ee87..d75cbca7fb1 100644 Binary files a/test/Bitcode/compatibility-3.6.ll.bc and b/test/Bitcode/compatibility-3.6.ll.bc differ