1; RUN: llvm-as %s -o %t.o 2; RUN: llvm-as %p/Inputs/weak.ll -o %t2.o 3 4; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \ 5; RUN: --plugin-opt=emit-llvm \ 6; RUN: -shared %t.o %t2.o -o %t3.o 7; RUN: llvm-dis %t3.o -o - | FileCheck %s 8 9target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 10 11@a = weak global i32 42 12@b = global i32* @a 13 14; Test that @b and @c end up pointing to the same variable. 15 16; CHECK: @a = weak global i32 42 17; CHECK: @b = global i32* @a{{$}} 18; CHECK: @c = global i32* @a{{$}} 19