1 ; RUN: llvm-link %s %p/Inputs/constructor-comdat.ll -S -o - 2>&1 | FileCheck %s
2 ; RUN: llvm-link %p/Inputs/constructor-comdat.ll %s -S -o - 2>&1 | FileCheck --check-prefix=NOCOMDAT %s
4 $_ZN3fooIiEC5Ev = comdat any
5 ; CHECK: $_ZN3fooIiEC5Ev = comdat any
8 @_ZN3fooIiEC1Ev = weak_odr alias void (), void ()* @_ZN3fooIiEC2Ev
9 ; CHECK: @_ZN3fooIiEC1Ev = weak_odr alias void (), void ()* @_ZN3fooIiEC2Ev
10 ; NOCOMDAT-DAG: define weak_odr void @_ZN3fooIiEC1Ev() {
12 ; CHECK: define weak_odr void @_ZN3fooIiEC2Ev() comdat($_ZN3fooIiEC5Ev) {
13 ; NOCOMDAT-DAG: define weak_odr void @_ZN3fooIiEC2Ev() {
14 define weak_odr void @_ZN3fooIiEC2Ev() comdat($_ZN3fooIiEC5Ev) {