1; RUN: llvm-link %s %p/Inputs/appending-global.ll -S -o - | FileCheck %s 2; RUN: llvm-link %p/Inputs/appending-global.ll %s -S -o - | FileCheck %s 3 4; Checks that we can link global variable with appending linkage with the 5; existing external declaration. 6 7; CHECK-DAG: @var = appending global [1 x ptr] undef 8; CHECK-DAG: @use = global [1 x ptr] [ptr @var] 9 10@var = external global ptr 11@use = global [1 x ptr] [ptr @var] 12