blob: 5aafcfe3d4fb3579df71bec991ebbcc3992e2dd5 [file] [log] [blame]
Dmitri Gribenkob137c9e2012-12-30 01:28:40 +00001; RUN: opt -constmerge -S < %s | FileCheck %s
Nick Lewycky0296a482011-01-15 18:14:21 +00002; PR8978
3
4declare i32 @zed(%struct.foobar*, %struct.foobar*)
5
6%struct.foobar = type { i32 }
7; CHECK: bar.d
Rafael Espindola751677a2011-01-16 17:05:09 +00008@bar.d = unnamed_addr constant %struct.foobar zeroinitializer, align 4
Nick Lewycky0296a482011-01-15 18:14:21 +00009; 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(%struct.foobar* @foo.d, %struct.foobar* @bar.d)
15nounwind
16 ret i32 0
17}
18