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 ptr] [ptr @var]
7 ; CHECK-DAG: @var = appending global [1 x ptr] undef
9 @use = appending global [1 x ptr] [ptr @var]
10 @var = appending global [1 x ptr] undef