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
4 ; Checks that we can link global variable with appending linkage with the
5 ; existing external declaration.
7 ; CHECK-DAG: @var = appending global [1 x i8*] undef
8 ; CHECK-DAG: @use = global [1 x i8*] [i8* bitcast ([1 x i8*]* @var to i8*)]
10 @var = external global i8*
11 @use = global [1 x i8*] [i8* bitcast (i8** @var to i8*)]