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 3 4$_ZN3fooIiEC5Ev = comdat any 5; CHECK: $_ZN3fooIiEC5Ev = comdat any 6; NOCOMDAT-NOT: comdat 7 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() { 11 12; CHECK: define weak_odr void @_ZN3fooIiEC2Ev() comdat($_ZN3fooIiEC5Ev) { 13; NOCOMDAT-DAG: define weak_odr void @_ZN3fooIiEC2Ev() { 14define weak_odr void @_ZN3fooIiEC2Ev() comdat($_ZN3fooIiEC5Ev) { 15 ret void 16} 17