xref: /llvm-project/llvm/test/Transforms/ConstantMerge/2011-01-15-EitherOrder.ll (revision 055fb7795aa219a3d274d280ec9129784f169f56)
1; RUN: opt -passes=constmerge -S < %s | FileCheck %s
2; PR8978
3
4declare i32 @zed(ptr, ptr)
5
6%struct.foobar = type { i32 }
7; CHECK: bar.d
8@bar.d =  unnamed_addr constant %struct.foobar zeroinitializer, align 4
9; CHECK-NOT: foo.d
10@foo.d = internal constant %struct.foobar zeroinitializer, align 4
11define i32 @main() nounwind ssp {
12entry:
13; CHECK: bar.d
14  %call2 = tail call i32 @zed(ptr @foo.d, ptr @bar.d)
15nounwind
16  ret i32 0
17}
18
19