2014-08-12 01:07:34 +08:00
|
|
|
; RUN: llvm-link %s %p/Inputs/constructor-comdat.ll -S -o - 2>&1 | FileCheck %s
|
2016-03-24 05:16:33 +08:00
|
|
|
; RUN: llvm-link %p/Inputs/constructor-comdat.ll %s -S -o - 2>&1 | FileCheck --check-prefix=NOCOMDAT %s
|
2014-08-12 01:07:34 +08:00
|
|
|
|
|
|
|
$_ZN3fooIiEC5Ev = comdat any
|
|
|
|
; CHECK: $_ZN3fooIiEC5Ev = comdat any
|
2016-03-24 05:16:33 +08:00
|
|
|
; NOCOMDAT-NOT: comdat
|
2014-08-12 01:07:34 +08:00
|
|
|
|
2015-09-11 11:22:04 +08:00
|
|
|
@_ZN3fooIiEC1Ev = weak_odr alias void (), void ()* @_ZN3fooIiEC2Ev
|
|
|
|
; CHECK: @_ZN3fooIiEC1Ev = weak_odr alias void (), void ()* @_ZN3fooIiEC2Ev
|
2016-03-24 05:16:33 +08:00
|
|
|
; NOCOMDAT-DAG: define weak_odr void @_ZN3fooIiEC1Ev() {
|
2014-08-12 01:07:34 +08:00
|
|
|
|
2015-01-07 06:55:16 +08:00
|
|
|
; CHECK: define weak_odr void @_ZN3fooIiEC2Ev() comdat($_ZN3fooIiEC5Ev) {
|
2016-03-24 05:16:33 +08:00
|
|
|
; NOCOMDAT-DAG: define weak_odr void @_ZN3fooIiEC2Ev() {
|
2015-01-07 06:55:16 +08:00
|
|
|
define weak_odr void @_ZN3fooIiEC2Ev() comdat($_ZN3fooIiEC5Ev) {
|
2014-08-12 01:07:34 +08:00
|
|
|
ret void
|
|
|
|
}
|