1 ; RUN: llvm-link %s -S -o - | FileCheck %s
3 ; Check that llvm-link does not crash when materializing appending global with
4 ; initializer depending on another appending global.
6 ; CHECK-DAG: @use = appending global [1 x i8*] [i8* bitcast ([1 x i8*]* @var to i8*)]
7 ; CHECK-DAG: @var = appending global [1 x i8*] undef
9 @use = appending global [1 x i8*] [i8* bitcast ([1 x i8*]* @var to i8*)]
10 @var = appending global [1 x i8*] undef