X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=test%2Ftools%2Fgold%2FInputs%2Fcomdat.ll;h=464aefa49dc12505004df69ad14b97456a260f9e;hb=ebe69fe11e48d322045d5949c83283927a0d790b;hp=e9e4704cc1ba17130e4915abef5fc076b6f09c19;hpb=b7d2e72b02a4cb8034f32f8247a2558d2434e121;p=android-x86%2Fexternal-llvm.git diff --git a/test/tools/gold/Inputs/comdat.ll b/test/tools/gold/Inputs/comdat.ll index e9e4704cc1b..464aefa49dc 100644 --- a/test/tools/gold/Inputs/comdat.ll +++ b/test/tools/gold/Inputs/comdat.ll @@ -1,7 +1,12 @@ $c2 = comdat any +$c1 = comdat any -@v1 = weak_odr global i32 41, comdat $c2 -define weak_odr protected i32 @f1(i8* %this) comdat $c2 { +; This is only present in this file. The linker will keep $c1 from the first +; file and this will be undefined. +@will_be_undefined = global i32 1, comdat($c1) + +@v1 = weak_odr global i32 41, comdat($c2) +define weak_odr protected i32 @f1(i8* %this) comdat($c2) { bb20: store i8* %this, i8** null br label %bb21