1$c2 = comdat any 2$c1 = comdat any 3 4; This is only present in this file. The linker will keep $c1 from the first 5; file and this will be undefined. 6@will_be_undefined = global i32 1, comdat($c1) 7@use = global i32* @will_be_undefined 8 9@v1 = weak_odr global i32 41, comdat($c2) 10define weak_odr protected i32 @f1(i8* %this) comdat($c2) { 11bb20: 12 store i8* %this, i8** null 13 br label %bb21 14bb21: 15 ret i32 41 16} 17 18@r21 = global i32* @v1 19@r22 = global i32(i8*)* @f1 20 21@a21 = alias i32, i32* @v1 22@a22 = alias i16, bitcast (i32* @v1 to i16*) 23 24@a23 = alias i32(i8*), i32(i8*)* @f1 25@a24 = alias i16, bitcast (i32(i8*)* @f1 to i16*) 26@a25 = alias i16, i16* @a24 27